Custom Widget with Session Timeout [message #1480525] |
Thu, 20 November 2014 03:54  |
Eclipse User |
|
|
|
Hi,
I'd like to implement a widget which shows the remaining time after which the session expires if the user is inactive. (For example a label showing "You are getting logged off in 5 minutes" which counts down every minute.)
Of course the widgets timer should be reseted after each user activity.
Currently i'm thinking about the following approach.
The idea is to write a custom widget. The label text is updated by JavaScript, so there shoudn't be any server-client-communication, which resets the server session timeout.
A MessageFilter registered on the ApplicationContext could call a reset-method on the RemoteObject of my Custom Widget.
I have only basic JavaScript knowledge and have never written a custom widget, so any hints on expected problems or advices for a better solution a very much appreciated.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.18757 seconds