PHP Класс AppserverIo\Appserver\ServletEngine\Session\ApcSessionHandler

Автор: Tim Wagner ([email protected])
Наследование: extends AbstractSessionHandler
Показать файл Открыть проект

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

Метод Описание
collectGarbage ( ) : integer Collects the garbage by deleting expired sessions.
delete ( string $id ) : void Deletes the session with the passed ID from the persistence layer.
load ( string $id ) : AppserverIo\Psr\Servlet\ServletSessionInterface Loads the session with the passed ID from the persistence layer and returns it.
save ( AppserverIo\Psr\Servlet\ServletSessionInterface $session ) : void Saves the passed session to the persistence layer.

Защищенные методы

Метод Описание
unpersist ( string $id ) : AppserverIo\Psr\Servlet\Http\HttpSessionInterface Tries to load the session data with the passed ID.

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

collectGarbage() публичный метод

Collects the garbage by deleting expired sessions.
public collectGarbage ( ) : integer
Результат integer The number of removed sessions

delete() публичный метод

Deletes the session with the passed ID from the persistence layer.
public delete ( string $id ) : void
$id string The ID of the session we want to delete
Результат void

load() публичный метод

Loads the session with the passed ID from the persistence layer and returns it.
public load ( string $id ) : AppserverIo\Psr\Servlet\ServletSessionInterface
$id string The ID of the session we want to unpersist
Результат AppserverIo\Psr\Servlet\ServletSessionInterface The unpersisted session

save() публичный метод

Saves the passed session to the persistence layer.
public save ( AppserverIo\Psr\Servlet\ServletSessionInterface $session ) : void
$session AppserverIo\Psr\Servlet\ServletSessionInterface The session to save
Результат void

unpersist() защищенный метод

Tries to load the session data with the passed ID.
protected unpersist ( string $id ) : AppserverIo\Psr\Servlet\Http\HttpSessionInterface
$id string The ID of the session to load
Результат AppserverIo\Psr\Servlet\Http\HttpSessionInterface The unmarshalled session