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

reimplement remember_me

This commit is contained in:
Andrew Dolgov
2013-03-28 09:48:58 +04:00
parent 3f0094189c
commit f231f438ba
4 changed files with 17 additions and 3 deletions

View File

@@ -500,6 +500,12 @@ class Handler_Public extends Handler {
$password = $_POST["password"];
$remember_me = $_POST["remember_me"];
if ($remember_me) {
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
} else {
session_set_cookie_params(0);
}
@session_start();
if (authenticate_user($this->link, $login, $password)) {