X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FSession.php;h=af1b8e74e4c06afd9e56b72f315670579014a516;hb=c31e248a03db90d7e123b85028d828e24b8c9d56;hp=f2a5dbd58ac52de334d1f1eb3f95b921cc93244c;hpb=26494fb5cdfb9cf103904d10b6bda564bcf2d0bd;p=pharext%2Fpharext.org diff --git a/app/Session.php b/app/Session.php index f2a5dbd..af1b8e7 100644 --- 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); }