Spec-Zone.ru › Symfony 4.1

SessionHandlerProxy

class SessionHandlerProxy extends AbstractProxy implements SessionHandlerInterface, SessionUpdateTimestampHandlerInterface

Свойства

protected bool $wrapper Флаг, если обработчик оборачивает внутренний PHP обработчик сессии (используя \SessionHandler). из AbstractProxy
protected string $saveHandlerName из AbstractProxy
protected $handler

Методы

string getSaveHandlerName()

Получает имя session.save_handler.

из AbstractProxy
bool isSessionHandlerInterface()

Является ли этот обработчик прокси и экземпляром \SessionHandlerInterface.

из AbstractProxy
bool isWrapper()

Возвращает true, если этот обработчик оборачивает внутренний PHP обработчик сохранения сессии с использованием \SessionHandler.

из AbstractProxy
bool isActive()

Начата ли сессия?

из AbstractProxy
string getId()

Получает идентификатор сессии.

из AbstractProxy
setId(string $id)

Устанавливает идентификатор сессии.

из AbstractProxy
string getName()

Получает имя сессии.

из AbstractProxy
setName(string $name)

Устанавливает имя сессии.

из AbstractProxy
__construct(SessionHandlerInterface $handler)
SessionHandlerInterface getHandler()
open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

validateId($sessionId)

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

Подробности

string getSaveHandlerName()

Получает имя session.save_handler.

Возвращаемое значение

string

bool isSessionHandlerInterface()

Является ли этот обработчик прокси экземпляром \SessionHandlerInterface.

Возвращаемое значение

bool

bool isWrapper()

Возвращает true, если этот обработчик оборачивает внутренний PHP обработчик сохранения сессии с использованием \SessionHandler.

Возвращаемое значение

bool

bool isActive()

Начата ли сессия?

Возвращаемое значение

bool

string getId()

Получает идентификатор сессии.

Возвращаемое значение

string

setId(string $id)

Устанавливает идентификатор сессии.

Параметры

string $id

Исключения

LogicException

string getName()

Получает имя сессии.

Возвращаемое значение

string

setName(string $name)

Устанавливает имя сессии.

Параметры

string $name

Исключения

LogicException

__construct(SessionHandlerInterface $handler)

Параметры

SessionHandlerInterface $handler

SessionHandlerInterface getHandler()

Возвращаемое значение

SessionHandlerInterface

open($savePath, $sessionName)

{@inheritdoc}

Параметры

$savePath
$sessionName

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

Параметры

$sessionId

write($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

destroy($sessionId)

{@inheritdoc}

Параметры

$sessionId

gc($maxlifetime)

{@inheritdoc}

Параметры

$maxlifetime

validateId($sessionId)

{@inheritdoc}

Параметры

$sessionId

updateTimestamp($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API