Allow custom session lifetime expiry #481

Closed
opened 2026-02-04 20:30:33 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @shane-smith on GitHub (Oct 25, 2017).

For Feature Requests

Desired Feature: Allow the session lifetime to be overridden in the .env file.

Suggested Solution

Modify config/session.php

From:
'lifetime' => 120,
To:
'lifetime' => env('SESSION_LIFETIME', 120),

This then allows us to specify a custom value as SESSION_LIFETIME=123 in the environment file.

I am happy to submit a pull request sometime in the next few weeks for this. Anyone else is welcome to do it for me in the meantime if you're willing to do it sooner.

Originally created by @shane-smith on GitHub (Oct 25, 2017). ### For Feature Requests Desired Feature: Allow the session lifetime to be overridden in the .env file. ##### Suggested Solution Modify config/session.php From: ```'lifetime' => 120,``` To: ```'lifetime' => env('SESSION_LIFETIME', 120),``` This then allows us to specify a custom value as `SESSION_LIFETIME=123` in the environment file. I am happy to submit a pull request sometime in the next few weeks for this. Anyone else is welcome to do it for me in the meantime if you're willing to do it sooner.
OVERLORD added the 🛠️ Enhancement label 2026-02-04 20:30:33 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 11, 2017):

@shane-smith Thanks for this request, It's now implemented and will be in the next release.

@ssddanbrown commented on GitHub (Nov 11, 2017): @shane-smith Thanks for this request, It's now implemented and will be in the next release.
Author
Owner

@shane-smith commented on GitHub (Nov 13, 2017):

Thanks!

@shane-smith commented on GitHub (Nov 13, 2017): Thanks!
Author
Owner

@candrews67 commented on GitHub (Oct 9, 2021):

SESSION_LIFETIME=120 , what is the 120 seconds? minutes? hours?

Thanks!

@candrews67 commented on GitHub (Oct 9, 2021): SESSION_LIFETIME=120 , what is the 120 seconds? minutes? hours? Thanks!
Author
Owner

@ssddanbrown commented on GitHub (Oct 9, 2021):

@candrews67 Minutes

@ssddanbrown commented on GitHub (Oct 9, 2021): @candrews67 Minutes
Author
Owner

@candrews67 commented on GitHub (Oct 9, 2021):

Thanks!!

@candrews67 commented on GitHub (Oct 9, 2021): Thanks!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#481