Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom session lifetime expiry #570

Closed
shane-smith opened this issue Oct 25, 2017 · 5 comments
Closed

Allow custom session lifetime expiry #570

shane-smith opened this issue Oct 25, 2017 · 5 comments

Comments

@shane-smith
Copy link

shane-smith commented 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.

@ssddanbrown
Copy link
Member

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

@shane-smith
Copy link
Author

Thanks!

@candrews67
Copy link

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

Thanks!

@ssddanbrown
Copy link
Member

@candrews67 Minutes

@candrews67
Copy link

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants