34 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
35 ilUnitUtil::performInitialisation();
45 include_once(
"./Services/Authentication/classes/class.ilSession.php");
77 $this->assertEquals(
"exists-write-get-duplicate-destroy-destroyExp-destroyByUser-",
$result);
87 include_once(
"./include/inc.pwassist_session_handler.php");
96 if ($res[
"pwassist_id"] ==
"12345")
103 if ($res[
"user_id"] == $ilUser->getId())
118 $this->assertEquals(
"find-read-destroy-",
$result);
static _destroy($a_session_id, $a_closing_context=null, $a_expired_at=null)
Destroy session.
db_pwassist_session_destroy($pwassist_id)
destroy session
db_pwassist_session_read($pwassist_id)
testBasicSessionBehaviour()
IL_Init
static _destroyExpiredSessions()
Destroy expired sessions.
db_pwassist_session_find($user_id)
static _exists($a_session_id)
Check whether session exists.
Class ilSessionTest needsInstalledILIAS.
static _getData($a_session_id)
Get session data from table.
static _destroyByUserId($a_user_id)
Destroy session.
static _writeData($a_session_id, $a_data)
Write session data.
static _duplicate($a_session_id)
Duplicate session.
db_pwassist_session_gc()
removes all expired sessions
testPasswordAssisstanceSession()
IL_Init
db_pwassist_session_write($pwassist_id, $maxlifetime, $user_id)
Writes serialized session data to the database.