PHP Класс Symfony\Component\HttpFoundation\SessionStorage\NativeSessionStorage

Автор: Fabien Potencier ([email protected])
Наследование: implements Symfony\Component\HttpFoundation\SessionStorage\SessionStorageInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$options
$sessionIdRegenerated
$sessionStarted

Открытые методы

Метод Описание
__construct ( array $options = [] ) Available options:
getId ( ) {@inheritDoc}
read ( string $key, string $default = null ) : mixed Reads data from this storage.
regenerate ( boolean $destroy = false ) : boolean Regenerates id that represents this storage.
remove ( string $key ) : mixed Removes data from this storage.
start ( ) Starts the session.
write ( string $key, mixed $data ) Writes data to this storage.

Описание методов

__construct() публичный Метод

* name: The cookie name (null [ommited] by default) * id: The session id (null [ommited] by default) * lifetime: Cookie lifetime * path: Cookie path * domain: Cookie domain * secure: Cookie secure * httponly: Cookie http only The default values for most options are those returned by the session_get_cookie_params() function
public __construct ( array $options = [] )
$options array An associative array of session options

getId() публичный Метод

{@inheritDoc}
public getId ( )

read() публичный Метод

The preferred format for a key is directory style so naming conflicts can be avoided.
public read ( string $key, string $default = null ) : mixed
$key string A unique key identifying your data
$default string Default value
Результат mixed Data associated with the key

regenerate() публичный Метод

Regenerates id that represents this storage.
public regenerate ( boolean $destroy = false ) : boolean
$destroy boolean Destroy session when regenerating?
Результат boolean True if session regenerated, false if error

remove() публичный Метод

The preferred format for a key is directory style so naming conflicts can be avoided.
public remove ( string $key ) : mixed
$key string A unique key identifying your data
Результат mixed Data associated with the key

start() публичный Метод

Starts the session.
public start ( )

write() публичный Метод

The preferred format for a key is directory style so naming conflicts can be avoided.
public write ( string $key, mixed $data )
$key string A unique key identifying your data
$data mixed Data associated with your key

Описание свойств

$options защищенное свойство

protected $options

$sessionIdRegenerated защищенное статическое свойство

protected static $sessionIdRegenerated

$sessionStarted защищенное статическое свойство

protected static $sessionStarted