aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/SessionHandler.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-11 19:19:58 -0700
committerredmatrix <git@macgirvin.com>2016-04-11 19:19:58 -0700
commit202035fc68d8b2364436cef75d68ac2a610e42c0 (patch)
treea73f378b4143c77e1a70ed7c5cb218374d98a807 /Zotlabs/Web/SessionHandler.php
parent5ab1d509d28d4e3fe80fb1d18d1255e402b1120f (diff)
downloadvolse-hubzilla-202035fc68d8b2364436cef75d68ac2a610e42c0.tar.gz
volse-hubzilla-202035fc68d8b2364436cef75d68ac2a610e42c0.tar.bz2
volse-hubzilla-202035fc68d8b2364436cef75d68ac2a610e42c0.zip
move all DB session storage logic to SessionHandler where it belongs
Diffstat (limited to 'Zotlabs/Web/SessionHandler.php')
-rw-r--r--Zotlabs/Web/SessionHandler.php9
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