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 (from parent 1:
a695aed
)
session: more logging
author
Michael Wallner
<mike@php.net>
Fri, 16 Dec 2016 09:14:30 +0000
(10:14 +0100)
committer
Michael Wallner
<mike@php.net>
Fri, 20 Dec 2019 12:21:59 +0000
(13:21 +0100)
app/Session.php
patch
|
blob
|
history
diff --git
a/app/Session.php
b/app/Session.php
index af1b8e74e4c06afd9e56b72f315670579014a516..6813e47fa9ece44318cff9fcbfa9cf37ac148bf3 100644
(file)
--- a/
app/Session.php
+++ b/
app/Session.php
@@
-4,11
+4,12
@@
namespace app;
use ArrayAccess;
use http\Env\Response;
use ArrayAccess;
use http\Env\Response;
+use http\Env\Request;
use http\Params;
class Session implements ArrayAccess
{
use http\Params;
class Session implements ArrayAccess
{
- function __construct(Config $config, BaseUrl $baseUrl, Re
sponse $response
) {
+ function __construct(Config $config, BaseUrl $baseUrl, Re
quest $request, Response $response, Logger $logger
) {
ini_set("session.cookie_path", $baseUrl->path);
foreach ($config->session as $key => $val) {
ini_set("session.$key", $val);
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();
])
);
session_start();
+ $logger->debug(session_id(), [
+ "url" => $request->getRequestUrl(),
+ ]);
}
function regenerateId() {
}
function regenerateId() {