class NullSessionHandler extends AbstractSessionHandler
Can be used in unit testing or in a situations where persisted sessions are not desired.
open($savePath, $sessionName) {@inheritdoc} | from AbstractSessionHandler | |
string | doRead(string $sessionId) | |
bool | doWrite(string $sessionId, string $data) | |
bool | doDestroy(string $sessionId) | |
validateId($sessionId) {@inheritdoc} | ||
read($sessionId) {@inheritdoc} | from AbstractSessionHandler | |
write($sessionId, $data) {@inheritdoc} | from AbstractSessionHandler | |
destroy($sessionId) {@inheritdoc} | from AbstractSessionHandler | |
close() {@inheritdoc} | ||
updateTimestamp($sessionId, $data) {@inheritdoc} | ||
gc($maxlifetime) {@inheritdoc} |
{@inheritdoc}
$savePath | ||
$sessionName |
string | $sessionId |
string |
string | $sessionId | |
string | $data |
bool |
string | $sessionId |
bool |
{@inheritdoc}
$sessionId |
{@inheritdoc}
$sessionId |
{@inheritdoc}
$sessionId | ||
$data |
{@inheritdoc}
$sessionId |
{@inheritdoc}
{@inheritdoc}
$sessionId | ||
$data |
{@inheritdoc}
$maxlifetime |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/Session/Storage/Handler/NullSessionHandler.html