70 return \ilSession::_duplicate(session_id());
84 $ilDB = $DIC->database();
86 $q =
"SELECT * FROM usr_pwassist " .
87 "WHERE pwassist_id = " .
$ilDB->quote($pwassist_id,
"text");
106 $ilDB = $DIC->database();
108 $q =
"SELECT * FROM usr_pwassist " .
109 "WHERE user_id = " .
$ilDB->quote($user_id,
"integer");
127 $ilDB = $DIC->database();
129 $q =
"DELETE FROM usr_pwassist " .
130 "WHERE pwassist_id = " .
$ilDB->quote($pwassist_id,
"text") .
" " .
131 "OR user_id = " .
$ilDB->quote($user_id,
'integer');
132 $ilDB->manipulate($q);
135 $expires = $ctime + $maxlifetime;
137 "INSERT INTO usr_pwassist " .
138 "(pwassist_id, expires, user_id, ctime) " .
139 "VALUES (%s,%s,%s,%s)",
140 array(
"text",
"integer",
"integer",
"integer"),
141 array($pwassist_id, $expires, $user_id, $ctime)
156 $ilDB = $DIC->database();
158 $q =
"DELETE FROM usr_pwassist " .
159 "WHERE pwassist_id = " .
$ilDB->quote($pwassist_id,
"text");
160 $ilDB->manipulate($q);
173 $ilDB = $DIC->database();
175 $q =
"DELETE FROM usr_pwassist " .
176 "WHERE expires < " .
$ilDB->quote(time(),
"integer");
177 $ilDB->manipulate($q);
db_pwassist_session_destroy($pwassist_id)
destroy session
db_pwassist_session_read($pwassist_id)
db_pwassist_session_find($user_id)
db_pwassist_session_gc()
removes all expired sessions
db_pwassist_session_close()
close session
db_pwassist_session_open($save_path, $name)
Database Session Handling for the password assistance use case.
db_pwassist_session_write($pwassist_id, $maxlifetime, $user_id)
Writes serialized session data to the database.