1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Made session cookie path dynamic based on APP_URL

This commit is contained in:
Dan Brown
2021-03-16 13:03:07 +00:00
parent 3d0e1bc9db
commit 1420f239fc
3 changed files with 10 additions and 7 deletions

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' => env('SESSION_COOKIE_PATH', '/'),
'path' => '/' . (explode('/', env('APP_URL', ''), 4)[3] ?? ''),
// Session Cookie Domain
// Here you may change the domain of the cookie used to identify a session