• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Time Out

 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers

Happy New year!!

I am in the process of developing a JSP Web application, with frame sets and iframes. The purpose of using the frame set and iframe is the page remains same throughout the application (egs: Header, left panel menu, footer) and the content part will the only one changing.

Now, I have in my web.xml, I have the session time out set to 10 minutes.



My challenge, if I left the web page idle for more than 10 minutes, the session is getting invalidate and when I come back and click any link in the left menu/content page, the iframe or content frameset is only giving the session time out message and not the whole page.

Please give me an idea to resolve this.

Thanks/Regards

Aravind Prasad
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use HttpSessionListener which listens to session creation and session destruction events. Redirection to specific JSP can be added in sessionDestroyed(HttpSessionEvent event) method [ this method receives a notification whenever a session is destroyed]. Here JSP will be your main JSP which contains all Header,. footer, left panel etc.

Another technique is mentioned in this URL
https://community.oracle.com/message/5920092
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Framesets are long considered dinosaurs. There are better ways to achieve common templating across pages (SPA, Tiles, etc). I'd advise you to modernize your approach.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!