PHP 인터페이스 AppserverIo\Appserver\ServletEngine\Session\SessionHandlerInterface

파일 보기 프로젝트 열기: appserver-io/appserver

공개 메소드들

메소드 설명
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.

메소드 상세

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

getSessionMarshaller() 공개 메소드

Returns the session marshaller.
public getSessionMarshaller ( ) : AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface
리턴 AppserverIo\Appserver\ServletEngine\SessionMarshallerInterface The session marshaller

getSessionSettings() 공개 메소드

Returns the session settings.
public getSessionSettings ( ) : AppserverIo\Appserver\ServletEngine\SessionSettingsInterface
리턴 AppserverIo\Appserver\ServletEngine\SessionSettingsInterface The session settings

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