Introduce an env variable for the Session Cookie Path

This commit is contained in:
ckleemann 2021-02-20 14:25:28 +01:00
parent 2df82dd870
commit 3fc935d4bb
No known key found for this signature in database
GPG Key ID: BC35531EEC02323C
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ SESSION_DRIVER=file
# Session configuration
SESSION_LIFETIME=120
SESSION_COOKIE_NAME=bookstack_session
SESSION_COOKIE_PATH=/
SESSION_SECURE_COOKIE=false
# Cache key prefix

View File

@ -59,7 +59,7 @@ return [
// The session cookie path determines the path for which the cookie will
// be regarded as available. Typically, this will be the root path of
// your application but you are free to change this when necessary.
'path' => '/',
'path' => env('SESSION_COOKIE_PATH', '/'),
// Session Cookie Domain
// Here you may change the domain of the cookie used to identify a session