Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Session Timeout Warning(Correct Implementation to warn user on upcoming timeout)
Session Timeout Warning [message #839057] Sat, 07 April 2012 23:34 Go to next message
Eclipse UserFriend
Hello,

I would like to show a message for the user if their session is about to time out (say 2 min) due to inactivity. Is there a recommended way to do so?

Thanks,
Ronald
Re: Session Timeout Warning [message #840239 is a reply to message #839057] Mon, 09 April 2012 17:18 Go to previous messageGo to next message
Eclipse UserFriend
You would need a ui call back active to display a server initiated event to the client. This would result in a new request being sent to the server, resetting the session timeout. The only way to do it while still using the servlet containers session timeout would be with entirely with Javascript, resetting a timer every time a request is made to the server.

I've been looking in to similar functionality (detect "inactive" clients who leave their browser open and leave documents open and locked...) but I haven't got anything I would be proud to share yet.
Re: Session Timeout Warning [message #840322 is a reply to message #840239] Mon, 09 April 2012 20:15 Go to previous messageGo to next message
Eclipse UserFriend
Although this does not quite address the feature of having the user notified when their session is about to timeout, It does address the idea of having a custom timeout shown, which you could extend to your purposes:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=376367

Re: Session Timeout Warning [message #840833 is a reply to message #840322] Tue, 10 April 2012 11:05 Go to previous message
Eclipse UserFriend
Thanks for your information, Chris & Austin. I will add myself to the CC list for 376367.
Previous Topic:The curious RAP FileDialog
Next Topic:Navigating Table cells in RAP on client side
Goto Forum:
  


Current Time: Sun Jun 15 02:44:58 EDT 2025

Powered by FUDForum. Page generated in 0.08615 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top