From 97f36fa46f620d7c78fbc76797fba42c81ccb28a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 19 Sep 2019 10:32:26 +0000 Subject: fix issue #1331 (cherry picked from commit 394f263ddd648e25ff3967bfbe3b0e25dccf89a0) --- Zotlabs/Web/SessionHandler.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3