XOOPS
2.6.0
|
Public Member Functions | |
__construct () | |
clear () | |
clearSession () | |
expireSession () | |
get ($name, $default=null) | |
has ($name) | |
regenerateSession () | |
remove ($name) | |
sessionStart () | |
set ($name, $value) | |
user () | |
Protected Member Functions | |
validateSession () | |
Protected Attributes | |
$fingerprint = null | |
$httpRequest = null | |
$sessionUser = null | |
$xoops = null | |
Definition at line 30 of file Manager.php.
Xoops\Core\Session\Manager::__construct | ( | ) |
establish access to other classes we will use
Definition at line 55 of file Manager.php.
References Xoops\getInstance(), and Xoops\Core\HttpRequest\getInstance().
Xoops\Core\Session\Manager::clear | ( | ) |
Remove all attributes.
Implements Xoops\Core\AttributeInterface.
Definition at line 279 of file Manager.php.
References $_SESSION.
Referenced by Xoops\Core\Session\Manager\clearSession().
Xoops\Core\Session\Manager::clearSession | ( | ) |
Clear the current session and reset fingerprint
Definition at line 136 of file Manager.php.
References Xoops\Core\Session\Manager\clear(), and Xoops\Core\Session\Manager\regenerateSession().
Referenced by Xoops\Core\Session\Manager\sessionStart().
Xoops\Core\Session\Manager::expireSession | ( | ) |
Expire the current session and replace with a fresh one.
Definition at line 148 of file Manager.php.
References Xoops\Core\Session\Manager\has(), and Xoops\Core\Session\Manager\set().
Referenced by Xoops\Core\Session\Manager\sessionStart().
Xoops\Core\Session\Manager::get | ( | $name, | |
$default = null |
|||
) |
Retrieve a session variable value.
string | $name | Name of an session variable |
mixed | $default | A default value returned if the requested named session variable is not set. |
Implements Xoops\Core\AttributeInterface.
Definition at line 228 of file Manager.php.
Xoops\Core\Session\Manager::has | ( | $name | ) |
Determine if an attribute exists.
string | $name | An attribute name. |
Implements Xoops\Core\AttributeInterface.
Definition at line 253 of file Manager.php.
References $_SESSION, and $name.
Referenced by Xoops\Core\Session\Manager\expireSession(), and Xoops\Core\Session\Manager\validateSession().
Xoops\Core\Session\Manager::regenerateSession | ( | ) |
Generate a new id and delete the old session.
This should be called whenever permission levels for a user change.
Definition at line 182 of file Manager.php.
Referenced by Xoops\Core\Session\Manager\clearSession(), and Xoops\Core\Session\Manager\sessionStart().
Xoops\Core\Session\Manager::remove | ( | $name | ) |
Remove an attribute.
string | $name | An attribute name. |
Implements Xoops\Core\AttributeInterface.
Definition at line 266 of file Manager.php.
Xoops\Core\Session\Manager::sessionStart | ( | ) |
Configure and start the session
Revisit this once basics are working
grab session_id from https login form
if ($xoops->getConfig('use_ssl') && isset($_POST[$xoops->getConfig('sslpost_name')]) && $_POST[$xoops->getConfig('sslpost_name')] != '' ) { session_id($_POST[$xoops->getConfig('sslpost_name')]); } else { set session_name...}
Definition at line 68 of file Manager.php.
References $_SESSION, $name, $path, Xoops\Core\Session\Manager\clearSession(), Xoops\Core\Session\Manager\expireSession(), XoopsBaseConfig\get(), Xoops\Core\Session\Manager\regenerateSession(), and Xoops\Core\Session\Manager\validateSession().
Xoops\Core\Session\Manager::set | ( | $name, | |
$value | |||
) |
Set an attribute value.
string | $name | Name of the attribute option |
mixed | $value | Value of the attribute option |
Implements Xoops\Core\AttributeInterface.
Definition at line 241 of file Manager.php.
References $_SESSION, and $name.
Referenced by Xoops\Core\Session\Manager\expireSession().
Xoops\Core\Session\Manager::user | ( | ) |
Get the user object used by this session.
Definition at line 212 of file Manager.php.
References Xoops\Core\Session\Manager\$sessionUser.
|
protected |
Validate that the session has not expired.
Definition at line 192 of file Manager.php.
References Xoops\Core\Session\Manager\has().
Referenced by Xoops\Core\Session\Manager\sessionStart().
|
protected |
Definition at line 45 of file Manager.php.
|
protected |
Definition at line 40 of file Manager.php.
|
protected |
Definition at line 50 of file Manager.php.
Referenced by Xoops\Core\Session\Manager\user().
|
protected |
Definition at line 35 of file Manager.php.