class NullSessionHandler
Can be used in unit testing or in a situations where persisted sessions are not desired.
@author Drak <drak@zikula.org>
Hierarchy
- class \Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler implements \Symfony\Component\HttpFoundation\Session\Storage\Handler\SessionHandlerInterface, \Symfony\Component\HttpFoundation\Session\Storage\Handler\SessionUpdateTimestampHandlerInterface
- class \Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler extends \Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler
Expanded class hierarchy of NullSessionHandler
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ Handler/ NullSessionHandler.php, line 19
Namespace
Symfony\Component\HttpFoundation\Session\Storage\HandlerView source
class NullSessionHandler extends AbstractSessionHandler {
public function close() : bool {
return true;
}
public function validateId(string $sessionId) : bool {
return true;
}
protected function doRead(string $sessionId) : string {
return '';
}
public function updateTimestamp(string $sessionId, string $data) : bool {
return true;
}
protected function doWrite(string $sessionId, string $data) : bool {
return true;
}
protected function doDestroy(string $sessionId) : bool {
return true;
}
public function gc(int $maxlifetime) : int|false {
return 0;
}
}