Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

danielbaylis's avatar

Exclude a URI from extending the session timeout?

I am setting up a timed ajax function that refreshes notifications on the page every few minutes. This will be automatic and does not represent user activity.

How can I prevent these automatic requests from extending the lifetime of the session? (i.e. prevent them counting as user activity and updating the session expiry time).

0 likes
0 replies

Please or to participate in this conversation.