idleMonitor: Session timeout handling
I have a idleMonitor to observe inactivity by the user and autologout after when idle event is fired. Now the Problem is when the user is not active and after a while he moves the mouse it reset the time of the idleMonitor but not on the Server side. The Server side timeout is only reseted if a request occours. Now how can i get an event when the idleMonitor timer is reset? Then i can make a request so the idleMonitor timer and Server Session Timeout timer are equal.
PrimeFaces 12.0.0,Mojarra 4.0.0,Payara 6
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
p:ajax event=active
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
No idea then. feel free to provide a pull request, so i can check your idea, how we can improve the component.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
Maybe using poll https://www.primefaces.org/showcase/ui/ajax/poll.xhtml ?
Marcel Vieira
Primefaces 6.2 / JSF 2.2 / Glassfish 4
Primefaces 6.2 / JSF 2.2 / Glassfish 4
@tandraschko My idea to improve the Component is to add a reset ajax event. So every time the user is not active, the time begin to run until reaching the timeout value. When the user again comes active, before reaching the timeout value, with for example mouse moving, the internal timer of the idlemonitor gets reseted, like it already is but in addition it fires a reset ajax event. With this event i can call a keepalive funtion on server side to ensure the timeout of the server is equal to that of the idleMonitor
PrimeFaces 12.0.0,Mojarra 4.0.0,Payara 6
-
- Information
-
Who is online
Users browsing this forum: No registered users and 45 guests