Do server-side sessions correspond to changes in the /checkSession endpoint? #455
-
|
I currently have a few SPAs that use your /checkSession endpoint in order to check the user's session by loading the iFrame and checking the cookie's validity as described here: https://openid.net/specs/openid-connect-session-1_0.html If I were to implement server-side sessions and I revoke all active sessions for that subjectId, does that raise a session changed event in the iFrame? The documentation only mentions that we should react to refresh token expiry instead, and there's no mention about the above specification: https://docs.duendesoftware.com/identityserver/ui/server-side-sessions/inactivity-timeout/#clients-with-refresh-tokens In your documentation for the user session service, it leads me to believe that the above approach is supported but I'm not 100% sure. It seems to all depend on the session cookie. https://docs.duendesoftware.com/identityserver/reference/services/user-session-service/ On a somewhat related note, I would also specify that external logout is front channel logout in your documentation here: https://docs.duendesoftware.com/identityserver/ui/logout/external-notification/ Thanks very much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
No, not automatically. The checksession iframe will have an event that is raised whenever the cookie expires because of its age, but the iframe does not perform an HTTP request to IdentityServer to also update the session cookie. Whenever a back-channel logout occurs, or you revoke a server-side session, the session cookie will only be updated (or expired) whenever the user visits IdentityServer in the browser. If you also use silent renew/login using |
Beta Was this translation helpful? Give feedback.
No, not automatically. The checksession iframe will have an event that is raised whenever the cookie expires because of its age, but the iframe does not perform an HTTP request to IdentityServer to also update the session cookie. Whenever a back-channel logout occurs, or you revoke a server-side session, the session cookie will only be updated (or expired) whenever the user visits IdentityServer in the browser.
If you also use silent renew/login using
prompt=none, this does trigger an IdentityServer endpoint which would refresh the sessi…