Question on user timeout logout #1339

Closed
opened 2026-02-05 00:39:03 +03:00 by OVERLORD · 11 comments
Owner

Originally created by @cb3inco on GitHub (Sep 4, 2019).

I had a user ask about the timeouts of users that are logged in. I've run into this myself and unsure what the length logged in before a user is logged out. There doesn't seem to be any onscreen prompt that a logout is pending.

Is there a way to manipulate the timeout to be something longer in the config?

I suppose a on screen alert or timeout function in the UI would be a feature request. Thanks.

Originally created by @cb3inco on GitHub (Sep 4, 2019). I had a user ask about the timeouts of users that are logged in. I've run into this myself and unsure what the length logged in before a user is logged out. There doesn't seem to be any onscreen prompt that a logout is pending. Is there a way to manipulate the timeout to be something longer in the config? I suppose a on screen alert or timeout function in the UI would be a feature request. Thanks.
Author
Owner

@JtheBAB commented on GitHub (Sep 4, 2019):

Hi

You can manipulate the session lifetime in your .env file. See here 16d8a667b1/.env.example.complete (L69)

@JtheBAB commented on GitHub (Sep 4, 2019): Hi You can manipulate the session lifetime in your .env file. See here https://github.com/BookStackApp/BookStack/blob/16d8a667b164b60623785ab89f8a1db41fd8b680/.env.example.complete#L69
Author
Owner

@cb3inco commented on GitHub (Oct 10, 2019):

Thanks! I got it.

@cb3inco commented on GitHub (Oct 10, 2019): Thanks! I got it.
Author
Owner

@mfsid commented on GitHub (Nov 29, 2021):

Hi

You can manipulate the session lifetime in your .env file. See here

16d8a667b1/.env.example.complete (L69)

Is that 120 minutes? I faced an issue where I spend 1 hour in creating a document and when I saved the document, the document expired as I was logged out.

@mfsid commented on GitHub (Nov 29, 2021): > Hi > > You can manipulate the session lifetime in your .env file. See here > > https://github.com/BookStackApp/BookStack/blob/16d8a667b164b60623785ab89f8a1db41fd8b680/.env.example.complete#L69 Is that 120 minutes? I faced an issue where I spend 1 hour in creating a document and when I saved the document, the document expired as I was logged out.
Author
Owner

@ssddanbrown commented on GitHub (Nov 29, 2021):

Is that 120 minutes?

Yeah. While editing, the draft-saving system should prolong your session anyway (Or show an error after if it attempts while the session is expired).

@ssddanbrown commented on GitHub (Nov 29, 2021): > Is that 120 minutes? Yeah. While editing, the draft-saving system should prolong your session anyway (Or show an error after if it attempts while the session is expired).
Author
Owner

@BloodyIron commented on GitHub (Aug 19, 2022):

Does draft-saving prolong the session here, or are drafts periodically saved automatically to avoid this dataloss? Can you advise on this @ssddanbrown ? It's a concerning topic.

@BloodyIron commented on GitHub (Aug 19, 2022): Does draft-saving prolong the session here, or are drafts periodically saved automatically to avoid this dataloss? Can you advise on this @ssddanbrown ? It's a concerning topic.
Author
Owner

@ssddanbrown commented on GitHub (Aug 19, 2022):

@BloodyIron I think drafts should autosave 30 seconds after any change IIRC. A draft save should prolong the session.
You could still get a session timeout scenario though if sitting on the edit view without changes.
If you then continued to edit then the next draft save attempt should show a warning regarding the expired session.

@ssddanbrown commented on GitHub (Aug 19, 2022): @BloodyIron I think drafts should autosave 30 seconds after any change IIRC. A draft save should prolong the session. You could still get a session timeout scenario though if sitting on the edit view without changes. If you then continued to edit then the next draft save attempt should show a warning regarding the expired session.
Author
Owner

@BloodyIron commented on GitHub (Aug 19, 2022):

@ssddanbrown thanks! I think those details would be worth putting on the Documentation page so that others can know that expected behaviour without having to dig for it. :) I'll have to test that behaviour ;)

Also, is SESSION_TIMEOUT in seconds or minutes? I see the env variable default to 120, but unsure units of measurement. (this being declared somewhere, the units, would also be helpful IMO)

@BloodyIron commented on GitHub (Aug 19, 2022): @ssddanbrown thanks! I think those details would be worth putting on the Documentation page so that others can know that expected behaviour without having to dig for it. :) I'll have to test that behaviour ;) Also, is SESSION_TIMEOUT in seconds or minutes? I see the env variable default to 120, but unsure units of measurement. (this being declared somewhere, the units, would also be helpful IMO)
Author
Owner

@ssddanbrown commented on GitHub (Aug 19, 2022):

@BloodyIron

Also, is SESSION_TIMEOUT in seconds or minutes?

Minutes

@ssddanbrown commented on GitHub (Aug 19, 2022): @BloodyIron > Also, is SESSION_TIMEOUT in seconds or minutes? Minutes
Author
Owner

@BloodyIron commented on GitHub (Aug 19, 2022):

Thanks for clarifying @ssddanbrown !

@BloodyIron commented on GitHub (Aug 19, 2022): Thanks for clarifying @ssddanbrown !
Author
Owner

@BloodyIron commented on GitHub (Aug 19, 2022):

Also thanks for all your work on Bookstack and such! I really like it so far :D

@BloodyIron commented on GitHub (Aug 19, 2022): Also thanks for all your work on Bookstack and such! I really like it so far :D
Author
Owner

@Firvulag commented on GitHub (Aug 26, 2024):

Sorry to reactivate the old thread, but does anyone knows if there are any limits in how many minutes we can set here? In the instructions it says "240", but I am not sure if that is just an example or a hard limit. I will try either way, but if someone knows already, that would save me some time testing it. Thank you!

@Firvulag commented on GitHub (Aug 26, 2024): Sorry to reactivate the old thread, but does anyone knows if there are any limits in how many minutes we can set here? In the instructions it says "240", but I am not sure if that is just an example or a hard limit. I will try either way, but if someone knows already, that would save me some time testing it. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1339