/** * Save frame url * * @param * @return */ function saveFrameUrl() { include_once "./Services/Authentication/classes/class.ilSessionIStorage.php"; $store = new ilSessionIStorage("lm"); if ($_GET["url"] != "") { $store->set("cf_" . $this->lm->getId(), $_GET["url"]); } else { $store->set("cf_" . $this->lm->getId(), $_GET["url"]); } }
/** * Destroy session * * @param string|array session id|s * @param int closing context * @param int|bool expired at timestamp */ static function _destroy($a_session_id, $a_closing_context = null, $a_expired_at = null) { global $ilDB; if (!$a_closing_context) { $a_closing_context = self::$closing_context; } ilSessionStatistics::closeRawEntry($a_session_id, $a_closing_context, $a_expired_at); if (!is_array($a_session_id)) { $q = "DELETE FROM usr_session WHERE session_id = " . $ilDB->quote($a_session_id, "text"); } else { // array: id => timestamp - so we get rid of timestamps if ($a_expired_at) { $a_session_id = array_keys($a_session_id); } $q = "DELETE FROM usr_session WHERE " . $ilDB->in("session_id", $a_session_id, "", "text"); } ilSessionIStorage::destroySession($a_session_id); $ilDB->manipulate($q); return true; }