BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

If you do not log in for a long time on the login interface, "Page Expire" will appear when you log in again.

Open VincentZhang777 opened this issue 2 years ago • 2 comments

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. image

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

VincentZhang777 avatar Jan 19 '24 08:01 VincentZhang777

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.

ssddanbrown avatar Jan 19 '24 11:01 ssddanbrown

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?

szabeszg avatar Jan 20 '24 07:01 szabeszg