What activity resets OIDCSessionInactivityTimeout timer? #734
-
What browser requests reset the session inactivity timeout timer in mod auth openidc? We have an Angular single-page app served by Apache HTTPD with mod_auth_openidc, which also protects the backend REST API. I configured mod_auth_openidc with OIDCSessionInactivityTimeout 1800; i.e., 30 minutes. The app automatically refreshes some data via a REST request every 15 minutes, and every REST request sets the header X-Requested-With=XMLHttpRequest. However we see after about 30 minutes the data endpoint returns 401, that the session has timed out, even tho I can see in the browser console that there definitely was activity in that interval. It's like these REST requests don't reset the inactivity timeout. Please help me understand this behavior, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
if the request contains a session cookie it will reset the inactivity timeout, regardless of the type of the request; you should be able to verify the resetting in the server debug logs, i.e.:
|
Beta Was this translation helpful? Give feedback.
if the request contains a session cookie it will reset the inactivity timeout, regardless of the type of the request; you should be able to verify the resetting in the server debug logs, i.e.: