NullSessionHandler
class NullSessionHandler implements SessionHandlerInterface
NullSessionHandler.
Can be used in unit testing or in a situations where persisted sessions are not desired.
Methods
| open($savePath, $sessionName) {@inheritdoc} | ||
| close() {@inheritdoc} | ||
| read($sessionId) {@inheritdoc} | ||
| write($sessionId, $data) {@inheritdoc} | ||
| destroy($sessionId) {@inheritdoc} | ||
| gc($maxlifetime) {@inheritdoc} |
Details
open($savePath, $sessionName)
{@inheritdoc}
Parameters
| $savePath | ||
| $sessionName |
close()
{@inheritdoc}
read($sessionId)
{@inheritdoc}
Parameters
| $sessionId |
write($sessionId, $data)
{@inheritdoc}
Parameters
| $sessionId | ||
| $data |
destroy($sessionId)
{@inheritdoc}
Parameters
| $sessionId |
gc($maxlifetime)
{@inheritdoc}
Parameters
| $maxlifetime |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/HttpFoundation/Session/Storage/Handler/NullSessionHandler.html