Method |
Description |
|
__construct ( Nette\Http\IRequest $request, Nette\Http\IResponse $response ) |
|
|
clean ( ) : void |
Cleans and minimizes meta structures. This method is called automatically on shutdown, do not call it directly. |
|
close ( ) : void |
Ends the current session and store session data. |
|
destroy ( ) : void |
Destroys all data registered to a session. |
|
exists ( ) : boolean |
Does session exists for the current request? |
|
getCookieParameters ( ) : array |
Returns the session cookie parameters. |
|
getId ( ) : string |
Returns the current session ID. Don't make dependencies, can be changed for each request. |
|
getIterator ( ) : ArrayIterator |
Iteration over all sections. |
|
getName ( ) : string |
Gets the session name. |
|
getOptions ( ) : array |
Returns all session options. |
|
getSection ( $section, $class = SessionSection::class ) : SessionSection |
Returns specified session section. |
|
hasSection ( $section ) : boolean |
Checks if a session section exist and is not empty. |
|
isStarted ( ) : boolean |
Has been session started? |
|
regenerateId ( ) : void |
Regenerates the session ID. |
|
setCookieParameters ( $path, $domain = NULL, $secure = NULL ) : self |
Sets the session cookie parameters. |
|
setExpiration ( $time ) : self |
Sets the amount of time allowed between requests before the session will be terminated. |
|
setHandler ( SessionHandlerInterface $handler ) : self |
Sets user session handler. |
|
setName ( $name ) : self |
Sets the session name to a specified one. |
|
setOptions ( array $options ) : self |
Sets session options. |
|
setSavePath ( $path ) : self |
Sets path of the directory used to save session data. |
|
setStorage ( Nette\Http\ISessionStorage $storage ) : self |
|
|
start ( ) : void |
Starts and initializes session data. |
|