Method | 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. | |
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 | Description | |
---|---|---|
unpersist ( string $id ) : AppserverIo\Psr\Servlet\Http\HttpSessionInterface | Tries to load the session data with the passed ID. |
public collectGarbage ( ) : integer | ||
return | integer | The number of removed sessions |