StrictSessionHandler
class StrictSessionHandler extends AbstractSessionHandler
Добавляет базовые SessionUpdateTimestampHandlerInterface возможности к другому SessionHandlerInterface.
Методы
| open($savePath, $sessionName) {@inheritdoc} | ||
| string | doRead(string $sessionId) | |
| bool | doWrite(string $sessionId, string $data) | |
| bool | doDestroy(string $sessionId) | |
| validateId($sessionId) {@inheritdoc} | из AbstractSessionHandler | |
| read($sessionId) {@inheritdoc} | из AbstractSessionHandler | |
| write($sessionId, $data) {@inheritdoc} | из AbstractSessionHandler | |
| destroy($sessionId) {@inheritdoc} | ||
| __construct(SessionHandlerInterface $handler) | ||
| updateTimestamp($sessionId, $data) {@inheritdoc} | ||
| close() {@inheritdoc} | ||
| gc($maxlifetime) {@inheritdoc} |
Подробное описание
open($savePath, $sessionName)
{@inheritdoc}
Параметры
| $savePath | ||
| $sessionName |
protected string doRead(string $sessionId)
Параметры
| string | $sessionId |
Возвращаемое значение
| string |
protected bool doWrite(string $sessionId, string $data)
Параметры
| string | $sessionId | |
| string | $data |
Возвращаемое значение
| bool |
protected bool doDestroy(string $sessionId)
Параметры
| string | $sessionId |
Возвращаемое значение
| bool |
validateId($sessionId)
{@inheritdoc}
Параметры
| $sessionId |
read($sessionId)
{@inheritdoc}
Параметры
| $sessionId |
write($sessionId, $data)
{@inheritdoc}
Параметры
| $sessionId | ||
| $data |
destroy($sessionId)
{@inheritdoc}
Параметры
| $sessionId |
__construct(SessionHandlerInterface $handler)
Параметры
| SessionHandlerInterface | $handler |
updateTimestamp($sessionId, $data)
{@inheritdoc}
Параметры
| $sessionId | ||
| $data |
close()
{@inheritdoc}
gc($maxlifetime)
{@inheritdoc}
Параметры
| $maxlifetime |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.html