This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatically redirect after a period of time

 
Aravind Prasad
Ranch Hand
Posts: 265
  • 0
  • 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: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic