diff options
author | Max Kostikov <max@kostikov.co> | 2019-09-19 12:41:47 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-09-19 12:41:47 +0200 |
commit | c385b808073fbe9e4422dc0af4c58149e5d6e9d5 (patch) | |
tree | 98d7d57c1a5864aca5de6f0aad2e81a58ef62a7f /Zotlabs | |
parent | 856d4b39d1eaac93f538de6dd00a476cf89f97f1 (diff) | |
parent | 97f36fa46f620d7c78fbc76797fba42c81ccb28a (diff) | |
download | volse-hubzilla-c385b808073fbe9e4422dc0af4c58149e5d6e9d5.tar.gz volse-hubzilla-c385b808073fbe9e4422dc0af4c58149e5d6e9d5.tar.bz2 volse-hubzilla-c385b808073fbe9e4422dc0af4c58149e5d6e9d5.zip |
Merge branch 'cherry-pick-394f263d' into 'dev'
fix issue #1331
See merge request hubzilla/core!1728
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Web/SessionHandler.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Web/SessionHandler.php b/Zotlabs/Web/SessionHandler.php index 04c5cb5b5..4292fdc28 100644 --- a/Zotlabs/Web/SessionHandler.php +++ b/Zotlabs/Web/SessionHandler.php @@ -38,10 +38,15 @@ class SessionHandler implements \SessionHandlerInterface { function write ($id, $data) { + // Pretend everything is hunky-dory, even though it isn't. + // There probably isn't anything we can do about it in any event. + // See: https://stackoverflow.com/a/43636110 + if(! $id || ! $data) { - return false; + return true; } + // Unless we authenticate somehow, only keep a session for 5 minutes // The viewer can extend this by performing any web action using the // original cookie, but this allows us to cleanup the hundreds or |