diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2025-06-16 11:01:13 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2025-06-16 11:01:13 +0200 |
commit | 1cba98101492b863164548d882fa3448d7540d1c (patch) | |
tree | ac5fe9664c44e9cb77e3c52e8efd2faba4b83298 | |
parent | 9b29df2dd59dffa85a29098d5684900f732ce584 (diff) | |
download | nextcloud-server-fix/session/log-regenerate-id.tar.gz nextcloud-server-fix/session/log-regenerate-id.zip |
fix(session): log session_regenerate_id for debuggingfix/session/log-regenerate-id
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | lib/private/Session/Internal.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index b465bcd3eda..9d2b2dacf66 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -123,7 +123,14 @@ class Internal extends Session { } try { + $oldId = $this->getId(); @session_regenerate_id($deleteOldSession); + $newId = $this->getId(); + $this->logger->debug('Regenerated session ID', [ + 'oldId' => $oldId, + 'newId' => $newId, + 'deleteOldSession' => $deleteOldSession, + ]); } catch (\Error $e) { $this->trapError($e->getCode(), $e->getMessage()); } |