PHP Interface AppserverIo\Appserver\ServletEngine\Session\SessionHandlerInterface

Afficher le fichier Open project: appserver-io/appserver

Méthodes publiques

Méthode Description
collectGarbage ( ) : integer Collects the garbage by deleting expired sessions.
delete ( string $id ) : void Deletes the session with the passed ID from the persistence layer.
getSessionMarshaller ( ) : AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface Returns the session marshaller.
getSessionSettings ( ) : AppserverIo\Appserver\ServletEngine\SessionSettingsInterface Returns the session settings.
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.

Method Details

collectGarbage() public méthode

Collects the garbage by deleting expired sessions.
public collectGarbage ( ) : integer
Résultat integer The number of removed sessions

delete() public méthode

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
Résultat void

getSessionMarshaller() public méthode

Returns the session marshaller.
public getSessionMarshaller ( ) : AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface
Résultat AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface The session marshaller

getSessionSettings() public méthode

Returns the session settings.
public getSessionSettings ( ) : AppserverIo\Appserver\ServletEngine\SessionSettingsInterface
Résultat AppserverIo\Appserver\ServletEngine\SessionSettingsInterface The session settings

load() public méthode

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
Résultat AppserverIo\Psr\Servlet\ServletSessionInterface The unpersisted session

save() public méthode

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
Résultat void