function RedisSessionHandler::doDestroy
Overrides AbstractSessionHandler::doDestroy
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ Handler/ RedisSessionHandler.php, line 67
Class
- RedisSessionHandler
- Redis based session storage handler based on the Redis class provided by the PHP redis extension.
Namespace
Symfony\Component\HttpFoundation\Session\Storage\HandlerCode
protected function doDestroy(string $sessionId) : bool {
static $unlink = true;
if ($unlink) {
try {
$unlink = false !== $this->redis
->unlink($this->prefix . $sessionId);
} catch (\Throwable) {
$unlink = false;
}
}
if (!$unlink) {
$this->redis
->del($this->prefix . $sessionId);
}
return true;
}