1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:05:55 +00:00

add yet another workaround for stuck login due to session cookies

This commit is contained in:
Andrew Dolgov
2013-03-28 09:09:41 +04:00
parent 79bb55892b
commit 60ed4c9ad5
2 changed files with 9 additions and 3 deletions

View File

@@ -492,9 +492,6 @@ class Handler_Public extends Handler {
}
function login() {
@session_destroy();
@session_start();
$_SESSION["prefs_cache"] = array();
if (!SINGLE_USER_MODE) {
@@ -503,6 +500,8 @@ class Handler_Public extends Handler {
$password = $_POST["password"];
$remember_me = $_POST["remember_me"];
@session_start();
if (authenticate_user($this->link, $login, $password)) {
$_POST["password"] = "";