diff options
author | Mario <mario@mariovavti.com> | 2022-02-09 12:02:00 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-09 12:02:00 +0000 |
commit | 76a94495c41c8f82fe99f919fa2b00bf372152f7 (patch) | |
tree | 3828d9ca8575a7830ba83b81a0981ac4568ee6b7 /Zotlabs/Web/SessionHandler.php | |
parent | 34ddea87d3875b6817468e13bd0fec7f437548f5 (diff) | |
parent | b6b2299b4e93a9c688c6ec1587808205bf4b4d2f (diff) | |
download | volse-hubzilla-76a94495c41c8f82fe99f919fa2b00bf372152f7.tar.gz volse-hubzilla-76a94495c41c8f82fe99f919fa2b00bf372152f7.tar.bz2 volse-hubzilla-76a94495c41c8f82fe99f919fa2b00bf372152f7.zip |
Merge branch 'dev'
Diffstat (limited to 'Zotlabs/Web/SessionHandler.php')
-rw-r--r-- | Zotlabs/Web/SessionHandler.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Web/SessionHandler.php b/Zotlabs/Web/SessionHandler.php index 392cab1ae..6beb36795 100644 --- a/Zotlabs/Web/SessionHandler.php +++ b/Zotlabs/Web/SessionHandler.php @@ -15,7 +15,7 @@ class SessionHandler implements \SessionHandlerInterface { // some which call read explicitly and some that do not. So we call it explicitly // just after sid regeneration to force a record to exist. - function read ($id) : string|false { + function read ($id) : string { if($id) { $r = q("SELECT sess_data FROM session WHERE sid= '%s'", dbesc($id)); @@ -86,7 +86,7 @@ class SessionHandler implements \SessionHandlerInterface { } - function gc($expire) : int|false { + function gc($expire) : int { q("DELETE FROM session WHERE expire < %d", dbesc(time())); return true; } |