Spec-Zone.ru › Laravel 6

Обработчик сеансов файлов

класс FileSessionHandler реализует SessionHandlerInterface (Просмотреть исходный код)

Свойства

protected Filesystem $files

Экземпляр файловой системы.

protected string $path

Путь, где должны храниться сеансы.

protected int $minutes

Количество минут, в течение которых сеанс должен быть действителен.

Методы

void __construct(Filesystem $files, string $path, int $minutes)

Создать новый экземпляр обработчика на основе файлов.

open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($lifetime)

{@inheritdoc}

Подробности

void __construct(Filesystem $files, string $path, int $minutes)

Создать новый экземпляр обработчика на основе файлов.

Параметры

Filesystem $files
string $path
int $minutes

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

void

open($savePath, $sessionName)

{@inheritdoc}

Параметры

$savePath
$sessionName

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

Параметры

$sessionId

write($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

destroy($sessionId)

{@inheritdoc}

Параметры

$sessionId

gc($lifetime)

{@inheritdoc}

Параметры

$lifetime

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Session/FileSessionHandler.html

Spec-Zone.ru

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