Poll wihout refresh session timeout. Is it possible?

UI Components for JSF
Post Reply
tomcki
Posts: 1
Joined: 26 May 2017, 09:25

26 May 2017, 09:41

Hi all!
In one page in my PrimeFaces 6.0 application I've got a poll component which call some backing bean method after every 10 sec. Every request is refreshing session timeout, therefore when user go away from desk the session timeout (atomaticly logout) will never occur.
Is it possible to use poll component (or antoher one) to periodically call method and do not refresh session timeout?
Thanks for Your help!

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

26 May 2017, 17:12

Don't think so.
But you can do a manual logout triggered by p:idleMonitor.
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

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

30 May 2017, 00:05

Use Push instead of poll

luxbaumilinovsky
Posts: 4
Joined: 08 Jun 2016, 08:31

06 Sep 2023, 08:28

tandraschko wrote:
26 May 2017, 17:12
Don't think so.
But you can do a manual logout triggered by p:idleMonitor.
idleMonitor does not work, when I have also a p:poll component on the same page!

So I have to distinguish if the user is really idle or the page send poll requests.

luxbaumilinovsky
Posts: 4
Joined: 08 Jun 2016, 08:31

07 Sep 2023, 07:03

My fault - <p:idleMonitor> an <p:poll> work on the same page!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 22 guests