Skip to content

Allow custom session lifetime expiry #570

Description

@shane-smith

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions