BEGIN
BEGIN
The Horde_Session class provides a set of methods for handling the administration and contents of the Horde session variable.
None found |
$sessionHandler : \Horde_SessionHandler
The session handler object.
None found |
$begin : integer
The timestamp when this session began (0 if session is not active).
None found |
$regenerate_due : boolean
True if session ID is due for regeneration (since 2.5.0).
None found |
$regenerate_interval : integer
The regeneration interval (since 2.5.0).
None found |
None found |
None found |
$_cleansession : boolean
Indicate that a new session ID has been generated for this page load.
None found |
None found |
$_relogin : integer
On re-login, indicate whether we were previously authenticated.
None found |
setup(boolean $start = true, string $cache_limiter = null, string $session_id = null)
Sets a custom session handler up, if there is one.
boolean | $start | Initiate the session? |
string | $cache_limiter | Override for the session cache limiter value. |
string | $session_id | The session ID to use. |
None found |
clean() : boolean
Destroys any existing session on login and make sure to use a new session ID, to avoid session fixation issues. Should be called before checking a login.
True if the session was cleaned.
None found |
isActive() : boolean
Is the current session active (read/write)?
True if the current session is active.
None found |
exists(string $app, string $name) : boolean
Does the session variable exist?
string | $app | Application name. |
string | $name | Session variable name. |
True if session variable exists.
None found |
get(string $app, string $name, integer $mask) : mixed
Get the value of a session variable.
string | $app | Application name. |
string | $name | Session variable name. |
integer | $mask | One of:
|
The value or null if the value doesn't exist.
None found |
set(string $app, string $name, mixed $value, integer $mask)
Sets the value of a session variable.
string | $app | Application name. |
string | $name | Session variable name. |
mixed | $value | Session variable value. |
integer | $mask | One of:
|
None found |
remove(string $app, string $name = null)
Remove session key(s).
string | $app | Application name. |
string | $name | Session variable name. |
None found |
None found |
checkToken(string $token)
Checks the validity of the session token.
string | $token | Token to check. |
None found |
since | 2.11.0 |
---|
checkNonce(string $nonce)
Checks the validity of the session nonce.
string | $nonce | Nonce to check. |
since | 2.11.0 |
---|
None found |
None found |
None found |