• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Automatically redirect after a period of time

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic