wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 263
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: 60810
    
  65

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: 60810
    
  65

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.
 
subject: Automatically redirect after a period of time
 
Similar Threads
Calling a form on a different frame
Getting netscape to view frames
html frames issue
Jboss 5.1.0 jsp:root not working
Viewing source code in frames.