19 declare(strict_types=1);
32 if (session_status() === PHP_SESSION_ACTIVE) {
36 return session_set_save_handler(
83 return ilSession::_writeData(
$id,
$data);
99 public function gc($max_lifetime)
static _getData(string $a_session_id)
Get session data from table.
Database Session Handling.
setSaveHandler()
Registers the session save handler session.save_handler must be 'user'.
static _destroyExpiredSessions()
Destroy expired sessions.
read($id)
Reads data of the session identified by $session_id and returns it as a serialised string...
destroy($id)
Destroys session.
static _destroy($a_session_id, ?int $a_closing_context=null, $a_expired_at=null)
Destroy session.
gc($max_lifetime)
Removes sessions that weren't updated for more than gc_maxlifetime seconds.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
open($path, $name)
Opens session, normally a db connection would be opened here, but we use the standard ilias db connec...
write($id, $data)
Writes serialized session data to the database.