I have a question I am have been googling all day with no examples I can use and need to come up with something.

I want to have a Javascript session timeout which does it's own internal countdown ie: 5 mins left before your session expires etc

I then would like to not have an "alert box" but rather an html layer indicating "x" minutes before the session expires, this page that pops up should also if there is no action in the 5 minutes reload it self to indicate the session has expired.

eg:
First Alert: "You have 5 minutes before your session expires"
Click here to continue your session.
or
Click here to logout

if no action in 5 mins then change the page to display
"Your session has expired"


I am really weak on Javascript but can plod through it if I have good examples.

Please take time to check where you posting. You posted in JSP that is Java Server Pages and that is not same as JavaScript. Post moved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.