Property | Type | Description | |
---|---|---|---|
$cookie_name | string | This variable contains the session cookie name. |
Method | 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. | |
hasSessionCookie ( ) : boolean | Check whether the session cookie is set. | |
loadSession ( string | null $sessionId = null ) : SimpleSAML_Session | null | Load the session from the PHP session array. | |
newSessionId ( ) : string | Create a new session id. | |
restorePrevious ( ) | Restore a previously-existing session. | |
saveSession ( SimpleSAML_Session $session ) | Save the current session to the PHP session array. | |
setCookie ( string $sessionName, string | null $sessionID, array $cookieParams = null ) | Set a session cookie. |
Method | Description | |
---|---|---|
__construct ( ) | Initialize the PHP session handling. This constructor is protected because it should only be called from SimpleSAML_SessionHandler::createSessionHandler(. |
Method | Description | |
---|---|---|
sessionStart ( ) | This method starts a session, making sure no warnings are generated due to headers being already sent. |
public getCookieParams ( ) : array | ||
return | array | The cookie parameters for our sessions. |
public getCookieSessionId ( ) : string | null | ||
return | string | null | The session id saved in the cookie or null if no session cookie was set. |
public getSessionCookieName ( ) : string | ||
return | string | The session cookie name. |
public hasSessionCookie ( ) : boolean | ||
return | boolean | True if it was set, false otherwise. |
public newSessionId ( ) : string | ||
return | string | The new session id. |
public restorePrevious ( ) |
public saveSession ( SimpleSAML_Session $session ) | ||
$session | SimpleSAML_Session | The session object we should save. |
protected string $cookie_name | ||
return | string |