XOOPS 2.5.6
Final
|
Public Member Functions | |
close () | |
destroy ($sess_id) | |
gc ($expire) | |
gc_force () | |
open ($save_path, $session_name) | |
read ($sess_id) | |
regenerate_id ($delete_old_session=false) | |
update_cookie ($sess_id=null, $expire=null) | |
write ($sess_id, $sess_data) | |
XoopsSessionHandler (&$db) | |
Public Attributes | |
$db | |
$enableRegenerateId = true | |
$securityLevel = 3 | |
Definition at line 31 of file session.php.
XoopsSessionHandler::close | ( | ) |
XoopsSessionHandler::destroy | ( | $sess_id | ) |
XoopsSessionHandler::gc | ( | $expire | ) |
Garbage Collector
int | $expire | Time in seconds until a session expires |
Definition at line 165 of file session.php.
References $sql.
XoopsSessionHandler::gc_force | ( | ) |
Force gc for situations where gc is registered but not executed
Definition at line 179 of file session.php.
XoopsSessionHandler::open | ( | $save_path, | |
$session_name | |||
) |
Open a session
string | $save_path | |
string | $session_name |
Definition at line 83 of file session.php.
XoopsSessionHandler::read | ( | $sess_id | ) |
XoopsSessionHandler::regenerate_id | ( | $delete_old_session = false | ) |
Update the current session id with a newly generated one
To be refactored
bool | $delete_old_session |
Definition at line 196 of file session.php.
XoopsSessionHandler::update_cookie | ( | $sess_id = null , |
|
$expire = null |
|||
) |
Update cookie status for current session
To be refactored FIXME: how about $xoopsConfig['use_ssl'] is enabled?
string | $sess_id | session ID |
int | $expire | Time in seconds until a session expires |
Definition at line 252 of file session.php.
References $xoopsConfig, and XOOPS_COOKIE_DOMAIN.
XoopsSessionHandler::write | ( | $sess_id, | |
$sess_data | |||
) |
Write a session to the database
string | $sess_id | |
string | $sess_data |
Definition at line 131 of file session.php.
XoopsSessionHandler::XoopsSessionHandler | ( | & | $db | ) |
Constructor
object | $db | reference to the XoopsDatabase object |
Definition at line 70 of file session.php.
References $db.
XoopsSessionHandler::$db |
Definition at line 39 of file session.php.
XoopsSessionHandler::$enableRegenerateId = true |
Definition at line 62 of file session.php.
XoopsSessionHandler::$securityLevel = 3 |
Definition at line 54 of file session.php.