메소드 | 설명 | |
---|---|---|
__destruct ( ) | Destroy the session. | |
addAssociation ( string $idp, array $association ) | Add an SP association for an IdP. | |
cleanup ( ) | Save the current session and clean any left overs that could interfere with the normal application behaviour. | |
createSession ( string $sessionId ) | Create a new session and cache it. | |
deleteData ( string $type, string $id ) | Delete data from the data store. | |
doLogin ( string $authority, array $data = null ) | Marks the user as logged in with the specified authority. | |
doLogout ( string $authority ) | Marks the user as logged out. | |
getAssociations ( string $idp ) : array | Retrieve the associations for an IdP. | |
getAuthData ( string $authority, string $name ) : mixed | Retrieve authentication data. | |
getAuthState ( string $authority ) : array | Get the current persistent authentication state. | |
getAuthorities ( ) : mixed | Retrieve a list of authorities (authentication sources) that are currently valid within this session. | |
getData ( string $type, string | null $id ) : mixed | This function retrieves data from the data store. | |
getDataOfType ( string $type ) : array | This function retrieves all data of the specified type from the data store. | |
getRememberMeExpire ( ) : integer | null | Get remember me expire time. | |
getSession ( string | null $sessionId = null ) : SimpleSAML_Session | Get a session from the session handler. | |
getSessionFromRequest ( ) : SimpleSAML_Session | Retrieves the current session. Creates a new session if there's not one. | |
getSessionId ( ) : string | null | Retrieve the session ID of this session. | |
getTrackID ( ) : string | null | Get a unique ID that will be permanent for this session. | |
hasSessionCookie ( ) : boolean | Check whether the session cookie is set. | |
isTransient ( ) : boolean | Retrieve if session is transient. | |
isValid ( string $authority ) : true | Is the session representing an authenticated user, and is the session still alive. | |
markDirty ( ) | Mark this session as dirty. | |
registerLogoutHandler ( string $authority, string $classname, string $functionname ) | This function registers a logout handler. | |
save ( ) | Save the session to the store. | |
serialize ( ) : string | Serialize this session object. | |
setAuthorityExpire ( string $authority, integer $expire = null ) | Set the lifetime for authentication source. | |
setData ( string $type, string $id, mixed $data, integer | null $timeout = null ) | This function stores data in the data store. | |
setRememberMeExpire ( integer $expire = null ) | Set remember me expire time. | |
terminateAssociation ( string $idp, string $associationId ) | Remove an SP association for an IdP. | |
unserialize ( string $serialized ) | Unserialize a session object and load it. | |
updateSessionCookies ( array $params = null ) | Update session cookies. | |
useTransientSession ( ) | Use a transient session. |
메소드 | 설명 | |
---|---|---|
__construct ( boolean $transient = false ) | Private constructor that restricts instantiation to either getSessionFromRequest() for the current session or getSession() for a specific one. | |
callLogoutHandlers ( string $authority ) | This function calls all registered logout handlers. | |
expireData ( ) | This function removes expired data from the data store. | |
load ( SimpleSAML_Session $session ) : SimpleSAML_Session | Load a given session as the current one. |
public __destruct ( ) |
public addAssociation ( string $idp, array $association ) | ||
$idp | string | The IdP id. |
$association | array | The association we should add. |
public cleanup ( ) |
public static createSession ( string $sessionId ) | ||
$sessionId | string | The new session we should create. |
public deleteData ( string $type, string $id ) | ||
$type | string | The type of the data. |
$id | string | The identifier of the data. |
public getAssociations ( string $idp ) : array | ||
$idp | string | The IdP id. |
리턴 | array | The IdP associations. |
public getAuthState ( string $authority ) : array | ||
$authority | string | The authority to retrieve the data from. |
리턴 | array | The current persistent authentication state, or null if not authenticated. |
public getAuthorities ( ) : mixed | ||
리턴 | mixed | An array containing every authority currently valid. Empty if none available. |
public getData ( string $type, string | null $id ) : mixed | ||
$type | string | The type of the data. This must match the type used when adding the data. |
$id | string | null | The identifier of the data. Can be null, in which case null will be returned. |
리턴 | mixed | The data of the given type with the given id or null if the data doesn't exist in the data store. |
public getDataOfType ( string $type ) : array | ||
$type | string | The type of the data. |
리턴 | array | An associative array with all data of the given type. |
public getRememberMeExpire ( ) : integer | null | ||
리턴 | integer | null | The remember me expire time. |
public static getSession ( string | null $sessionId = null ) : SimpleSAML_Session | ||
$sessionId | string | null | The session we should get, or null to get the current session. |
리턴 | SimpleSAML_Session | The session that is stored in the session handler, or null if the session wasn't found. |
public static getSessionFromRequest ( ) : SimpleSAML_Session | ||
리턴 | SimpleSAML_Session | The current session. |
public getSessionId ( ) : string | null | ||
리턴 | string | null | The session ID, or null if this is a transient session. |
public getTrackID ( ) : string | null | ||
리턴 | string | null | The unique ID. |
public hasSessionCookie ( ) : boolean | ||
리턴 | boolean | true if it was set, false if not. |
public isTransient ( ) : boolean | ||
리턴 | boolean | The session transient flag. |
public markDirty ( ) |
public save ( ) |
public setAuthorityExpire ( string $authority, integer $expire = null ) | ||
$authority | string | The authentication source we are setting expire time for. |
$expire | integer | The number of seconds authentication source is valid. |
public setData ( string $type, string $id, mixed $data, integer | null $timeout = null ) | ||
$type | string | The type of the data. This is checked when retrieving data from the store. |
$id | string | The identifier of the data. |
$data | mixed | The data. |
$timeout | integer | null | The number of seconds this data should be stored after its last access. This parameter is optional. The default value is set in 'session.datastore.timeout', and the default is 4 hours. |
public setRememberMeExpire ( integer $expire = null ) | ||
$expire | integer | Unix timestamp when remember me session cookies expire. |
public terminateAssociation ( string $idp, string $associationId ) | ||
$idp | string | The IdP id. |
$associationId | string | The id of the association. |
public unserialize ( string $serialized ) | ||
$serialized | string | The serialized representation of a session that we want to restore. |
public updateSessionCookies ( array $params = null ) | ||
$params | array | The parameters for the cookies. |
public static useTransientSession ( ) |