Repository navigation
feat: warn guests before their session expires - #3983
Merged
Merged
Conversation
Warn 15 minutes before the guest session expires and let the guest request a PIN from the notification to refresh the session. Entering the PIN is only offered if it was requested before the session expired. The expiry is shifted to the client clock via the server's Date header. Sessions refreshed in another tab, e.g. via the emailed link, are picked up via localStorage.
JammingBen
force-pushed
the
feat/guest-session-expiry-warning
branch
from
October 22, 2026 10:35
9ba27a1 to
9688c34
Compare
JammingBen
marked this pull request as ready for review
October 22, 2026 12:10
kulmann
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Guests currently lose their session without notice once it expires. This PR warns them 15 minutes before expiry and lets them refresh the session via a PIN sent by email, without leaving the page.
Dateheader (only available same-origin or if the server exposes the header).The implementation will get a bit simpler once opencloud-eu/opencloud#3786 landed in the server. But for now, this does work.
Issue
closes #3797
How to test
On a valid guest session, run the following in the browser console to trick Web into thinking the session is about to expire:
Then go through the renewal flow.