1
0
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:
Andrew Dolgov
2006-03-20 17:53:11 +01:00
parent 2055d4a6dc
commit 76b4eae177
5 changed files with 42 additions and 5 deletions

View File

@@ -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";
}