only bump lang cookie when using persistent session cookies

This commit is contained in:
Andrew Dolgov 2007-08-19 07:37:06 +01:00
parent 267ad38bf8
commit d54780bcf1
1 changed files with 1 additions and 1 deletions

View File

@ -1414,7 +1414,7 @@
db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " .
$_SESSION["uid"]);
if ($_SESSION["language"]) {
if ($_SESSION["language"] && SESSION_COOKIE_LIFETIME > 0) {
setcookie("ttrss_lang", $_SESSION["language"],
time() + SESSION_COOKIE_LIFETIME);
}