]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2df82dd
)
Introduce an env variable for the Session Cookie Path
2573/head
author
ckleemann
<redacted>
Sat, 20 Feb 2021 13:25:28 +0000
(14:25 +0100)
committer
ckleemann
<redacted>
Sat, 20 Feb 2021 13:25:28 +0000
(14:25 +0100)
.env.example.complete
patch
|
blob
|
history
app/Config/session.php
patch
|
blob
|
history
diff --git
a/.env.example.complete
b/.env.example.complete
index 9b8c8298aef53e60dd5889f7cf02bee74475568e..8369e59736c0a775d12f29817b15f8e46ea94f0b 100644
(file)
--- a/
.env.example.complete
+++ b/
.env.example.complete
@@
-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
diff --git
a/app/Config/session.php
b/app/Config/session.php
index 571836bd2af2276a20732bfbe86459e83343551f..84916bcd44de4e96e9260879b37e649cc23f30bd 100644
(file)
--- 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' =>
env('SESSION_COOKIE_PATH', '/')
,
// Session Cookie Domain
// Here you may change the domain of the cookie used to identify a session
hide
Morty Proxy
This is a
proxified and sanitized
view of the page, visit
original site
.