]> BookStack Code Mirror - bookstack/blobdiff - app/Config/session.php
Fixed tests from streaming changes
[bookstack] / app / Config / session.php
index 571836bd2af2276a20732bfbe86459e83343551f..4bbb789010ff341a0cf6d6b505201412a5b76819 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-use \Illuminate\Support\Str;
+use Illuminate\Support\Str;
 
 /**
  * Session configuration options.
@@ -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