프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$maxStore | integer | Maximum size of the pruneable data store. | |
$sessionHandler | Horde_SessionHandler | The session handler object. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_active | boolean | Indicates that the session is active (read/write). | |
$_cleansession | boolean | Indicate that a new session ID has been generated for this page load. | |
$_data | array | Pointer to the session data. | |
$_readonly | boolean | Indicates that session data is read-only. | |
$_relogin | integer | On re-login, indicate whether we were previously authenticated. |
메소드 | 설명 | |
---|---|---|
__construct ( ) | Constructor. | |
__get ( $name ) | ||
__set ( $name, $value ) | ||
checkNonce ( string $nonce ) | Checks the validity of the session nonce. | |
checkToken ( string $token ) | Checks the validity of the session token. | |
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. | |
close ( ) | Close the current session. | |
destroy ( ) | Destroy session data. | |
exists ( string $app, string $name ) : boolean | Does the session variable exist? | |
get ( string $app, string $name, integer $mask ) : mixed | Get the value of a session variable. | |
getNonce ( ) : string | Returns a single-use, session nonce. | |
getToken ( ) : string | Returns the session token. | |
isActive ( ) : boolean | Is the current session active (read/write)? | |
purge ( $id ) | ||
regenerate ( ) | Regenerate the session ID. | |
remove ( string $app, string $name = null ) | Remove session key(s). | |
retrieve ( $id ) | ||
set ( string $app, string $name, mixed $value, integer $mask ) | Sets the value of a session variable. | |
setup ( boolean $start = true, string $cache_limiter = null, string $session_id = null ) | Sets a custom session handler up, if there is one. | |
start ( ) | Starts the session. | |
store ( $data, $prune = true, $id = null ) |
메소드 | 설명 | |
---|---|---|
_getKey ( string $app, string $name ) : string | Generates the unique storage key. | |
_start ( ) | Tasks to perform when starting a session. | |
_subkeys ( string $app, string $name ) : array | Return the list of subkeys for a master key. |
public checkNonce ( string $nonce ) | ||
$nonce | string | Nonce to check. |
public checkToken ( string $token ) | ||
$token | string | Token to check. |
public get ( string $app, string $name, integer $mask ) : mixed | ||
$app | string | Application name. |
$name | string | Session variable name. |
$mask | integer | One of: - Horde_Session::TYPE_ARRAY - Return an array value. - Horde_Session::TYPE_OBJECT - Return an object value. |
리턴 | mixed | The value or null if the value doesn't exist. |
public set ( string $app, string $name, mixed $value, integer $mask ) | ||
$app | string | Application name. |
$name | string | Session variable name. |
$value | mixed | Session variable value. |
$mask | integer | One of: - Horde_Session::TYPE_ARRAY: Force save as an array value. - Horde_Session::TYPE_OBJECT: Force save as an object value. - Horde_Session::ENCRYPT: Encrypt the value. (since 2.7.0) |
protected bool $_active | ||
리턴 | boolean |
protected bool $_cleansession | ||
리턴 | boolean |
protected bool $_readonly | ||
리턴 | boolean |
protected int $_relogin | ||
리턴 | integer |