X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e6ea53b3e68932deb2a38359af8cbc34d10735b0..refs/pull/2734/head:/app/Config/session.php diff --git a/app/Config/session.php b/app/Config/session.php index 571836bd2..c750e1ef9 100644 --- a/app/Config/session.php +++ b/app/Config/session.php @@ -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' => '/' . (explode('/', env('APP_URL', ''), 4)[3] ?? ''), // Session Cookie Domain // Here you may change the domain of the cookie used to identify a session