Méthode |
Description |
|
addTag ( string $tag ) : void |
Tags this session with the given tag. |
|
canBeResumed ( ) : boolean |
Returns TRUE if there is a session that can be resumed. FALSE otherwise |
|
close ( ) : void |
Explicitly writes (persists) and closes the session |
|
collectGarbage ( ) : integer |
Remove data of all sessions which are considered to be expired. |
|
destroy ( string $reason = null ) : void |
Explicitly destroys all session data |
|
getData ( string $key ) : array |
Returns the contents (array) associated with the given key. |
|
getId ( ) : string |
Returns the current session ID. |
|
getLastActivityTimestamp ( ) : integer |
Returns the unix time stamp marking the last point in time this session has
been in use. |
|
getTags ( ) : array |
Returns the tags this session has been tagged with. |
|
hasKey ( string $key ) : boolean |
Returns TRUE if $key is available. |
|
isStarted ( ) : boolean |
Tells if the session has been started already. |
|
putData ( string $key, mixed $data ) : void |
Stores the given data under the given key in the session |
|
removeTag ( string $tag ) : void |
Removes the specified tag from this session. |
|
renewId ( ) : string |
Generates and propagates a new session ID and transfers all existing data
to the new session. |
|
resume ( ) : void |
Resumes an existing session, if any. |
|
start ( ) : void |
Starts the session, if is has not been already started |
|
touch ( ) : void |
Updates the last activity time to "now". |
|