From: Michael Wallner Date: Fri, 16 Dec 2016 09:14:30 +0000 (+0100) Subject: session: more logging X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=02fda98019edf4be19c05c84317486522eab06da;p=pharext%2Fpharext.org session: more logging --- diff --git a/app/Session.php b/app/Session.php index af1b8e7..6813e47 100644 --- a/app/Session.php +++ b/app/Session.php @@ -4,11 +4,12 @@ namespace app; use ArrayAccess; use http\Env\Response; +use http\Env\Request; use http\Params; class Session implements ArrayAccess { - function __construct(Config $config, BaseUrl $baseUrl, Response $response) { + function __construct(Config $config, BaseUrl $baseUrl, Request $request, Response $response, Logger $logger) { ini_set("session.cookie_path", $baseUrl->path); foreach ($config->session as $key => $val) { ini_set("session.$key", $val); @@ -24,6 +25,9 @@ class Session implements ArrayAccess ]) ); session_start(); + $logger->debug(session_id(), [ + "url" => $request->getRequestUrl(), + ]); } function regenerateId() {