aspose file tools*
The moose likes JSF and the fly likes Timeout validation dialog box. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Timeout validation dialog box." Watch "Timeout validation dialog box." New topic
Author

Timeout validation dialog box.

Robert James Liguori
Author
Ranch Hand

Joined: Nov 27, 2007
Posts: 532
    
    5

After a session has expired, I need to open up a dialog box that gives the user two minutes to reset the timeout counter or the session will expire.

Any suggestions or tutorials that I can use to code this up? Can this functionality be done with JSF components or is Javascript needed?


My Blog (I frequently post on Java, JSF and NetBeans)
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Make use of Javascript's setTimeout() function in combination with HttpSession#getMaxInactiveInterval().
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Timeout validation dialog box.