PHP 클래스 AppserverIo\Appserver\ServletEngine\Session\FilesystemSessionHandler

상속: extends AbstractSessionHandler
파일 보기 프로젝트 열기: 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.
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.

보호된 메소드들

메소드 설명
getSessionSavePath ( string $toAppend = null ) : string Returns the default path to persist sessions.
removeSessionFile ( string $pathname ) : boolean Removes the session file with the passed name containing session data.
sessionFileExists ( string $pathname ) : boolean Checks if a file with the passed name containing session data exists.
unpersist ( string $pathname ) : AppserverIo\Psr\Servlet\Http\HttpSessionInterface Tries to load the session data from the passed filename.

메소드 상세

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

getSessionSavePath() 보호된 메소드

Returns the default path to persist sessions.
protected getSessionSavePath ( string $toAppend = null ) : string
$toAppend string A relative path to append to the session save path
리턴 string The default path to persist session

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

removeSessionFile() 보호된 메소드

Removes the session file with the passed name containing session data.
protected removeSessionFile ( string $pathname ) : boolean
$pathname string The path of the file to remove
리턴 boolean TRUE if the file has successfully been removed, else FALSE

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

sessionFileExists() 보호된 메소드

Checks if a file with the passed name containing session data exists.
protected sessionFileExists ( string $pathname ) : boolean
$pathname string The path of the file to check
리턴 boolean TRUE if the file exists, else FALSE

unpersist() 보호된 메소드

Tries to load the session data from the passed filename.
protected unpersist ( string $pathname ) : AppserverIo\Psr\Servlet\Http\HttpSessionInterface
$pathname string The path of the file to load the session data from
리턴 AppserverIo\Psr\Servlet\Http\HttpSessionInterface The unmarshalled session