The moose likes HTML, CSS and JavaScript and the fly likes Automatically redirect after a period of time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Automatically redirect after a period of time" Watch "Automatically redirect after a period of time" New topic
Author

Automatically redirect after a period of time

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
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

Joined: Jan 10, 2002
Posts: 62117
    
  68

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62117
    
  68

I've also changed the topic subject as this question has nothing to do with session timeouts or with JSP.
 
Don't get me started about those stupid light bulbs.
 
subject: Automatically redirect after a period of time