if ($_REQUEST["sid"]) {
session_id($_REQUEST["sid"]);
+ @session_start();
}
- @session_start();
-
if (!init_connection($link)) return;
$method = strtolower($_REQUEST["op"]);
}
function login() {
+ @session_start();
+
$login = db_escape_string($this->link, $_REQUEST["user"]);
$password = $_REQUEST["password"];
$password_base64 = base64_decode($_REQUEST["password"]);
function login() {
+ @session_start();
+
$_SESSION["prefs_cache"] = array();
if (!SINGLE_USER_MODE) {
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
if (!defined('TTRSS_SESSION_NAME') || TTRSS_SESSION_NAME != 'ttrss_api_sid') {
- @session_start();
+ if ($_COOKIE[$session_name]) {
+ @session_start();
+ }
}
?>