aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/SessionHandler.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-11 13:27:44 -0700
committerredmatrix <git@macgirvin.com>2016-07-11 13:27:44 -0700
commitfb36561a6841c165dc8644a61c4c37a771461e2b (patch)
tree3ddfe2ac592b42248c8cd0f14f29063bb79a0859 /Zotlabs/Web/SessionHandler.php
parent67c60229ca663135e8de5b99b27b0838fa6c205a (diff)
downloadvolse-hubzilla-fb36561a6841c165dc8644a61c4c37a771461e2b.tar.gz
volse-hubzilla-fb36561a6841c165dc8644a61c4c37a771461e2b.tar.bz2
volse-hubzilla-fb36561a6841c165dc8644a61c4c37a771461e2b.zip
force non-null sess_data
Diffstat (limited to 'Zotlabs/Web/SessionHandler.php')
-rw-r--r--Zotlabs/Web/SessionHandler.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Web/SessionHandler.php b/Zotlabs/Web/SessionHandler.php
index 6e7333b4b..93b27a7e8 100644
--- a/Zotlabs/Web/SessionHandler.php
+++ b/Zotlabs/Web/SessionHandler.php
@@ -24,7 +24,8 @@ class SessionHandler implements \SessionHandlerInterface {
return $r[0]['sess_data'];
}
else {
- q("INSERT INTO `session` (sid, expire) values ('%s', '%s')",
+ q("INSERT INTO `session` (sess_data, sid, expire) values ('%s', '%s', '%s')",
+ dbesc(''),
dbesc($id),
dbesc(time() + 300)
);