Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatically redirect after a period of time

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

I am preparing a system where by I have split the home page after loggin in, as the below code.



1. Heading.jsp - which is the heading part
2. footer.jsp - which is the footer part
3. body.jsp - which is where the page is displayed when the user clicks on the leftmenu.jsp links
4. Leftmenu.jsp - is the menu tree for the system

I need to implement the following - When a users has put the system idle for more than 30 minutes, the system has to time out automatically and redirect the whole page to login page.


How can I achieve this. You help and support will help me.

Thanks/ Aravind


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, you should reconsider your design. Frames are antiquated and have been replaced with better CSS-driven layout mechanisms.

Secondly, JSP will be of no help to you here. You'll need to implement any sort of automatic redirection after a timeout using JavaScript. Note that JavaScript can be disabled so you're new design will need to account for that.

I have moved this post to the HTML/JavaScript forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've also changed the topic subject as this question has nothing to do with session timeouts or with JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic