}
function login() {
- @session_destroy();
- @session_start();
-
$_SESSION["prefs_cache"] = array();
if (!SINGLE_USER_MODE) {
$password = $_POST["password"];
$remember_me = $_POST["remember_me"];
+ @session_start();
+
if (authenticate_user($this->link, $login, $password)) {
$_POST["password"] = "";
if (!defined('TTRSS_SESSION_NAME') || TTRSS_SESSION_NAME != 'ttrss_api_sid') {
if ($_COOKIE[$session_name]) {
@session_start();
+
+ if (!$_SESSION["uid"]) {
+ session_destroy();
+ if (isset($_COOKIE[session_name()])) {
+ setcookie(session_name(), '', time()-42000, '/');
+ }
+ }
}
}
?>