From: Andrew Dolgov Date: Sun, 19 Aug 2007 06:37:06 +0000 (+0100) Subject: only bump lang cookie when using persistent session cookies X-Git-Tag: 1.2.14~26 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d54780bcf10a06c8bad8b4d38d82a6dbd7096865;p=tt-rss.git only bump lang cookie when using persistent session cookies --- diff --git a/functions.php b/functions.php index cefd4917..11bb9d8a 100644 --- a/functions.php +++ b/functions.php @@ -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); }