Merge pull request #8987 from MrPetovan/bug/8984-session-destroy

Add support for empty session write
pull/8991/head
Michael Vogel 2020-08-08 05:39:57 +02:00 zatwierdzone przez GitHub
commit e733055485
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -87,7 +87,7 @@ class Cache implements SessionHandlerInterface
}
if (!$session_data) {
return true;
return $this->destroy($session_id);
}
return $this->cache->set('session:' . $session_id, $session_data, Session::$expire);

Wyświetl plik

@ -94,7 +94,7 @@ class Database implements SessionHandlerInterface
}
if (!$session_data) {
return true;
return $this->destroy($session_id);
}
$expire = time() + Session::$expire;

Wyświetl plik

@ -53,9 +53,4 @@ class Native extends AbstractSession implements ISession
session_start();
return $this;
}
public function clear()
{
session_destroy();
}
}