This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Session Time Out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Session Time Out" Watch "Session Time Out" New topic

Session Time Out

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Dear Ranchers,
In my program, I'm using <iframe> for displaying the page when I click a drop down menu. I have set a session time out 30 sec in Web.xml file.

But when the Session times out, the page will redirect it to the index page with a message. That page is showing inside the inline frame.

Is there any way where I can put the target.

The code is here

Please Help me ranchers

Aravind Prasad
subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203

Inside your jsp(iframe) you have to check for the session variable and then redirect your parent window to the loggin page.
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Thankyou for your reply.

But even if I redirect the page. It is still showing the redirected page inside the IFRAME. But If I can put the target in the redirection part, i hope it can work fine.

Please help me how to put target in the page.


Aravind Prasad
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Session Time Out
Similar Threads
how to convert .jsp to .java
PreparedStatement always returns {-2, -2, -2,...}
how can i convert .jsp to .java
PreparedStatement problem; Doesn't happen with plain SQL
Problem while opening excel sheet from jsp