5 include_once(
"./Services/Authentication/classes/class.ilSession.php");
23 if (session_status() === PHP_SESSION_ACTIVE) {
27 if (ini_get(
"session.save_handler") ==
"user" || version_compare(PHP_VERSION,
'7.2.0',
'>=')) {
28 session_set_save_handler(
30 array($this,
"close"),
32 array($this,
"write"),
33 array($this,
"destroy"),
74 public function read($session_id)
89 include_once(
"./Services/Authentication/classes/class.ilSession.php");
111 public function gc($gc_maxlifetime)
119 register_shutdown_function(
"session_write_close");
static _destroy($a_session_id, $a_closing_context=null, $a_expired_at=null)
Destroy session.
gc($gc_maxlifetime)
removes sessions that weren't updated for more than gc_maxlifetime seconds
Database Session Handling.
destroy($session_id)
destroy session
static _destroyExpiredSessions()
Destroy expired sessions.
static _getData($a_session_id)
Get session data from table.
static _writeData($a_session_id, $a_data)
Write session data.
write($session_id, $data)
Writes serialized session data to the database.