mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-06 09:09:38 +03:00
If you do not log in for a long time on the login interface, "Page Expire" will appear when you log in again. #4415
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VincentZhang777 on GitHub (Jan 19, 2024).
Describe the Bug
If you do not log in for a long time on the login interface, "Page Expire" will appear when you log in again.

Steps to Reproduce
1.Open the Login Page
2.Idle Time
3.Attempt to Log In
4.Observe the Behavior
Expected Behaviour
Upon attempting to log in after inactivity, a "Page Expire" message is displayed, preventing login.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v24.1.19
@ssddanbrown commented on GitHub (Jan 19, 2024):
Hi @VincentZhang777,
Thanks for raising, but this is expected since your session would have invalidated so the form submission couldn't pass CSRF checks.
While this could be an annoyance, I don't think it's a large enough one to work around with extra complexity since this specific case (of waiting on a page before performing an action) has rarely been raised, if at all in the past.
@szabeszg commented on GitHub (Jan 20, 2024):
Perhaps JavaScript could be used to monitor the length of idle time and respond accordingly, such as reloading the page. Would implementing something like that introduce additional complexity?
@ssddanbrown commented on GitHub (Feb 25, 2025):
@szabeszg yes.
Since there's been little further reported annoyance with this, and for the responses provided in my prior comment, I'm going to go ahead and close this off.