mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-08 09:39:16 +00:00
some UI frontend cookies respect session cookie lifetime, misc cookie cleanups (closes #52)
This commit is contained in:
11
login.php
11
login.php
@@ -41,7 +41,16 @@
|
||||
|
||||
if (authenticate_user($link, $login, $password)) {
|
||||
initialize_user_prefs($link, $_SESSION["uid"]);
|
||||
|
||||
|
||||
if ($_POST["remember_me"]) {
|
||||
$_SESSION["cookie_lifetime"] = time() + SESSION_COOKIE_LIFETIME_REMEMBER;
|
||||
} else {
|
||||
$_SESSION["cookie_lifetime"] = time() + SESSION_COOKIE_LIFETIME;
|
||||
}
|
||||
|
||||
setcookie("ttrss_cltime", $_SESSION["cookie_lifetime"],
|
||||
$_SESSION["cookie_lifetime"]);
|
||||
|
||||
if (!$return_to) {
|
||||
$return_to = "tt-rss.php";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user