(cherry picked from commit 394f263ddd648e25ff3967bfbe3b0e25dccf89a0)
This commit is contained in:
Mario Vavti 2019-09-19 10:32:26 +00:00 committed by Mario
parent 856d4b39d1
commit 97f36fa46f

View File

@ -38,10 +38,15 @@ class SessionHandler implements \SessionHandlerInterface {
function write ($id, $data) { 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) { if(! $id || ! $data) {
return false; return true;
} }
// Unless we authenticate somehow, only keep a session for 5 minutes // Unless we authenticate somehow, only keep a session for 5 minutes
// The viewer can extend this by performing any web action using the // The viewer can extend this by performing any web action using the
// original cookie, but this allows us to cleanup the hundreds or // original cookie, but this allows us to cleanup the hundreds or