DatabaseSessionHandler
class DatabaseSessionHandler implements SessionHandlerInterface, ExistenceAwareInterface (View source)
Свойства
| protected Connection | $connection | Экземпляр подключения к базе данных. | |
| protected string | $table | Имя таблицы сессий. | |
| protected bool | $exists | Состояние существования сессии. |
Методы
| void | __construct(Connection $connection, string $table) Создать новый обработчик сессий базы данных. | |
| open($savePath, $sessionName) {@inheritDoc} | ||
| close() {@inheritDoc} | ||
| read($sessionId) {@inheritDoc} | ||
| write($sessionId, $data) {@inheritDoc} | ||
| destroy($sessionId) {@inheritDoc} | ||
| gc($lifetime) {@inheritDoc} | ||
| Builder | getQuery() Получить свежий экземпляр билдера запросов для таблицы. | |
| SessionHandlerInterface | setExists(bool $value) Установить состояние существования сессии. |
Подробное описание
void __construct(Connection $connection, string $table)
Создать новый обработчик сессий базы данных.
open($savePath, $sessionName)
{@inheritDoc}
close()
{@inheritDoc}
read($sessionId)
{@inheritDoc}
write($sessionId, $data)
{@inheritDoc}
destroy($sessionId)
{@inheritDoc}
gc($lifetime)
{@inheritDoc}
protected Builder getQuery()
Получить свежий экземпляр билдера запросов для таблицы.
SessionHandlerInterface setExists(bool $value)
Установить состояние существования сессии.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Session/DatabaseSessionHandler.html