Свойство | Type | Description | |
---|---|---|---|
$sessionHandler | SimpleSAML_SessionHandler | This static variable contains a reference to the current instance of the session handler. This variable will be NULL if we haven't instantiated a session handler yet. |
Méthode | Description | |
---|---|---|
getCookieParams ( ) : array | Get the cookie parameters that should be used for session cookies. | |
getCookieSessionId ( ) : string | null | Retrieve the session ID saved in the session cookie, if there's one. | |
getSessionCookieName ( ) : string | Retrieve the session cookie name. | |
getSessionHandler ( ) : SimpleSAML_SessionHandler | This function retrieves the current instance of the session handler. | |
hasSessionCookie ( ) : boolean | Check whether the session cookie is set. | |
loadSession ( string | null $sessionId = null ) : SimpleSAML_Session | null | Load the session. | |
newSessionId ( ) : string | Create a new session id. | |
saveSession ( SimpleSAML_Session $session ) | Save the session. | |
setCookie ( string $sessionName, string | null $sessionID, array $cookieParams = null ) | Set a session cookie. |
Méthode | Description | |
---|---|---|
__construct ( ) | This constructor is included in case it is needed in the the future. Including it now allows us to write parent::__construct() in the subclasses of this class. |
Méthode | Description | |
---|---|---|
createSessionHandler ( ) | Initialize the session handler. |
protected __construct ( ) |
public getCookieParams ( ) : array | ||
Résultat | array | An array with the cookie parameters. |
abstract public getCookieSessionId ( ) : string | null | ||
Résultat | string | null | The session id saved in the cookie or null if no session cookie was set. |
abstract public getSessionCookieName ( ) : string | ||
Résultat | string | The session cookie name. |
public static getSessionHandler ( ) : SimpleSAML_SessionHandler | ||
Résultat | SimpleSAML_SessionHandler | The current session handler. |
public hasSessionCookie ( ) : boolean | ||
Résultat | boolean | True if it was set, false if not. |
abstract public newSessionId ( ) : string | ||
Résultat | string | The new session id. |
abstract public saveSession ( SimpleSAML_Session $session ) | ||
$session | SimpleSAML_Session | The session object we should save. |
abstract public setCookie ( string $sessionName, string | null $sessionID, array $cookieParams = null ) | ||
$sessionName | string | The name of the session. |
$sessionID | string | null | The session ID to use. Set to null to delete the cookie. |
$cookieParams | array | Additional parameters to use for the session cookie. |
protected static SimpleSAML_SessionHandler $sessionHandler | ||
Résultat | SimpleSAML_SessionHandler |