projects
/
pharext
/
pharext.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
d3645eb
)
limit cookie path to baseurl by default
author
Michael Wallner
<mike@php.net>
Fri, 15 May 2015 13:12:16 +0000
(15:12 +0200)
committer
Michael Wallner
<mike@php.net>
Fri, 15 May 2015 13:12:16 +0000
(15:12 +0200)
app/Session.php
patch
|
blob
|
history
diff --git
a/app/Session.php
b/app/Session.php
index f2a5dbd58ac52de334d1f1eb3f95b921cc93244c..af1b8e74e4c06afd9e56b72f315670579014a516 100644
(file)
--- a/
app/Session.php
+++ b/
app/Session.php
@@
-8,7
+8,8
@@
use http\Params;
class Session implements ArrayAccess
{
- function __construct(Config $config, Response $response) {
+ function __construct(Config $config, BaseUrl $baseUrl, Response $response) {
+ ini_set("session.cookie_path", $baseUrl->path);
foreach ($config->session as $key => $val) {
ini_set("session.$key", $val);
}