ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
restorePrevious () | |
Restore a previously-existing session. More... | |
newSessionId () | |
Create a new session id. More... | |
getCookieSessionId () | |
Retrieve the session ID saved in the session cookie, if there's one. More... | |
getSessionCookieName () | |
Retrieve the session cookie name. More... | |
saveSession (\SimpleSAML_Session $session) | |
Save the current session to the PHP session array. More... | |
loadSession ($sessionId=null) | |
Load the session from the PHP session array. More... | |
hasSessionCookie () | |
Check whether the session cookie is set. More... | |
getCookieParams () | |
Get the cookie parameters that should be used for session cookies. More... | |
setCookie ($sessionName, $sessionID, array $cookieParams=null) | |
Set a session cookie. More... | |
Public Member Functions inherited from SimpleSAML\SessionHandler | |
newSessionId () | |
Create a new session id. More... | |
getCookieSessionId () | |
Retrieve the session ID saved in the session cookie, if there's one. More... | |
getSessionCookieName () | |
Retrieve the session cookie name. More... | |
saveSession (\SimpleSAML_Session $session) | |
Save the session. More... | |
loadSession ($sessionId=null) | |
Load the session. More... | |
hasSessionCookie () | |
Check whether the session cookie is set. More... | |
setCookie ($sessionName, $sessionID, array $cookieParams=null) | |
Set a session cookie. More... | |
getCookieParams () | |
Get the cookie parameters that should be used for session cookies. More... | |
Protected Member Functions | |
__construct () | |
Initialize the PHP session handling. More... | |
Protected Member Functions inherited from SimpleSAML\SessionHandler | |
__construct () | |
This constructor is included in case it is needed in the future. More... | |
Protected Attributes | |
$cookie_name | |
Private Member Functions | |
sessionStart () | |
This method starts a session, making sure no warnings are generated due to headers being already sent. More... | |
Private Attributes | |
$previous_session = array() | |
Additional Inherited Members | |
Static Public Member Functions inherited from SimpleSAML\SessionHandler | |
static | getSessionHandler () |
This function retrieves the current instance of the session handler. More... | |
Static Protected Attributes inherited from SimpleSAML\SessionHandler | |
static | $sessionHandler = null |
Definition at line 17 of file SessionHandlerPHP.php.
|
protected |
Initialize the PHP session handling.
This constructor is protected because it should only be called from ::createSessionHandler(...).
Definition at line 44 of file SessionHandlerPHP.php.
References $config, PHPMailer\PHPMailer\$params, and SimpleSAML_Configuration\getInstance().
SimpleSAML\SessionHandlerPHP::getCookieParams | ( | ) |
Get the cookie parameters that should be used for session cookies.
This function contains some adjustments from the default to provide backwards-compatibility.
Definition at line 294 of file SessionHandlerPHP.php.
References $config, $ret, and SimpleSAML_Configuration\getInstance().
SimpleSAML\SessionHandlerPHP::getCookieSessionId | ( | ) |
Retrieve the session ID saved in the session cookie, if there's one.
Definition at line 184 of file SessionHandlerPHP.php.
References $_COOKIE.
SimpleSAML\SessionHandlerPHP::getSessionCookieName | ( | ) |
Retrieve the session cookie name.
Definition at line 209 of file SessionHandlerPHP.php.
SimpleSAML\SessionHandlerPHP::hasSessionCookie | ( | ) |
Check whether the session cookie is set.
This function will only return false if is is certain that the cookie isn't set.
Definition at line 277 of file SessionHandlerPHP.php.
References $_COOKIE.
SimpleSAML\SessionHandlerPHP::loadSession | ( | $sessionId = null | ) |
Load the session from the PHP session array.
string | null | $sessionId | The ID of the session we should load, or null to use the default. |
Definition at line 236 of file SessionHandlerPHP.php.
References $_SESSION, $ret, and $session.
SimpleSAML\SessionHandlerPHP::newSessionId | ( | ) |
Create a new session id.
Definition at line 167 of file SessionHandlerPHP.php.
References SimpleSAML_Session\createSession().
SimpleSAML\SessionHandlerPHP::restorePrevious | ( | ) |
Restore a previously-existing session.
Use this method to restore a previous PHP session existing before SimpleSAMLphp initialized its own session.
WARNING: do not use this method directly, unless you know what you are doing. Calling this method directly, outside of SimpleSAML_Session, could cause SimpleSAMLphp's session to be lost or mess the application's one. The session must always be saved properly before calling this method. If you don't understand what this is about, don't use this method.
Definition at line 132 of file SessionHandlerPHP.php.
SimpleSAML\SessionHandlerPHP::saveSession | ( | \SimpleSAML_Session | $session | ) |
Save the current session to the PHP session array.
\SimpleSAML_Session | $session | The session object we should save. |
Definition at line 220 of file SessionHandlerPHP.php.
References $_SESSION.
|
private |
This method starts a session, making sure no warnings are generated due to headers being already sent.
Definition at line 99 of file SessionHandlerPHP.php.
SimpleSAML\SessionHandlerPHP::setCookie | ( | $sessionName, | |
$sessionID, | |||
array | $cookieParams = null |
||
) |
Set a session cookie.
string | $sessionName | The name of the session. |
string | null | $sessionID | The session ID to use. Set to null to delete the cookie. |
array | null | $cookieParams | Additional parameters to use for the session cookie. |
Definition at line 326 of file SessionHandlerPHP.php.
References $sessionID.
|
protected |
Definition at line 25 of file SessionHandlerPHP.php.
|
private |
Definition at line 37 of file SessionHandlerPHP.php.