diff options
Diffstat (limited to 'Zotlabs/Web/SessionHandler.php')
-rw-r--r-- | Zotlabs/Web/SessionHandler.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Web/SessionHandler.php b/Zotlabs/Web/SessionHandler.php index 670e8f216..359279384 100644 --- a/Zotlabs/Web/SessionHandler.php +++ b/Zotlabs/Web/SessionHandler.php @@ -80,4 +80,13 @@ class SessionHandler implements \SessionHandlerInterface { } + // not part of the official interface, used when regenerating the session id + + function rename($old,$new) { + $v = q("UPDATE session SET sid = '%s' WHERE sid = '%s'", + dbesc($new), + dbesc($old) + ); + } + }
\ No newline at end of file |