]> BookStack Code Mirror - bookstack/blobdiff - app/Config/session.php
Add base64 image support
[bookstack] / app / Config / session.php
index 84916bcd44de4e96e9260879b37e649cc23f30bd..c750e1ef9a4ff48f93eb836dbdd182ea63a1a14f 100644 (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