◆ __construct()
◆ close()
Close a session
- Returns
- bool
◆ destroy()
Destroy a session
- Parameters
-
- Returns
- bool
◆ gc()
Garbage Collector
- Parameters
-
int | $expire | Time in seconds until a session expires |
- Returns
- bool
◆ gc_force()
Force gc for situations where gc is registered but not executed
◆ open()
open |
( |
|
$savePath, |
|
|
|
$sessionName |
|
) |
| |
Open a session
- Parameters
-
string | $savePath | |
string | $sessionName | |
- Returns
- bool
◆ read()
Read a session from the database
- Parameters
-
string | $sessionId | ID of the session |
- Returns
- string Session data
◆ regenerate_id()
regenerate_id |
( |
|
$delete_old_session = false | ) |
|
Update the current session id with a newly generated one
To be refactored
- Parameters
-
- Returns
- bool
◆ update_cookie()
update_cookie |
( |
|
$sess_id = null , |
|
|
|
$expire = null |
|
) |
| |
Update cookie status for current session
To be refactored FIXME: how about $xoopsConfig['use_ssl'] is enabled?
- Parameters
-
string | $sess_id | session ID |
int | $expire | Time in seconds until a session expires |
- Returns
- bool
◆ write()
write |
( |
|
$sessionId, |
|
|
|
$data |
|
) |
| |
Write a session to the database
- Parameters
-
string | $sessionId | |
string | $data | |
- Returns
- bool
◆ $bitMasks
Initial value:= array(
2 => array('v4' => 16, 'v6' => 64),
3 => array('v4' => 24, 'v6' => 56),
4 => array('v4' => 32, 'v6' => 128),
)
◆ $db
◆ $enableRegenerateId
$enableRegenerateId = true |
◆ $securityLevel
The documentation for this class was generated from the following file: