23 $q =
"SELECT data FROM usr_session WHERE session_id = ".
24 $ilDB->quote($a_session_id,
"text");
25 $set = $ilDB->query(
$q);
26 $rec = $ilDB->fetchAssoc($set);
41 $expires = time() + ini_get(
"session.gc_maxlifetime");
53 $ilDB->update(
"usr_session", array(
54 "user_id" => array(
"integer", (
int)
$_SESSION[
"AccountId"]),
55 "expires" => array(
"integer", $expires),
56 "data" => array(
"clob", $a_data),
57 "ctime" => array(
"integer", time())
59 "session_id" => array(
"text", $a_session_id)
73 $ilDB->insert(
"usr_session", array(
74 "session_id" => array(
"text", $a_session_id),
75 "expires" => array(
"integer", $expires),
76 "data" => array(
"clob", $a_data),
77 "ctime" => array(
"integer", time()),
78 "user_id" => array(
"integer", (
int)
$_SESSION[
"AccountId"])
96 $q =
"SELECT session_id FROM usr_session WHERE session_id = ".
97 $ilDB->quote($a_session_id,
"text");
98 $set = $ilDB->query(
$q);
99 if ($ilDB->fetchAssoc($set))
115 $q =
"DELETE FROM usr_session WHERE session_id = ".
116 $ilDB->quote($a_session_id,
"text");
117 $ilDB->manipulate(
$q);
131 $q =
"DELETE FROM usr_session WHERE user_id = ".
132 $ilDB->quote($a_user_id,
"integer");
133 $ilDB->manipulate(
$q);
145 $q =
"DELETE FROM usr_session WHERE expires < ".
146 $ilDB->quote(time(),
"integer");
147 $ilDB->manipulate(
$q);
163 $new_session = $a_session_id;
166 $new_session = md5($new_session);
167 $q =
"SELECT * FROM usr_session WHERE ".
168 "session_id = ".$ilDB->quote($new_session,
"text");
170 }
while($ilDB->fetchAssoc(
$res));
172 $query =
"SELECT * FROM usr_session ".
173 "WHERE session_id = ".$ilDB->quote($a_session_id,
"text");
176 while (
$row = $ilDB->fetchObject(
$res))