Two Laptop Bag*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Session Time Out" Watch "Session Time Out" New topic
Author

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

Regards
Aravind Prasad
subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
Hi,

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


http://subodh-gupta.blogspot.com
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.

Regards

Aravind Prasad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Time Out
 
Similar Threads
how to convert .jsp to .java
PreparedStatement problem; Doesn't happen with plain SQL
Problem while opening excel sheet from jsp
PreparedStatement always returns {-2, -2, -2,...}
how can i convert .jsp to .java