From d54780bcf10a06c8bad8b4d38d82a6dbd7096865 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 19 Aug 2007 07:37:06 +0100 Subject: [PATCH] only bump lang cookie when using persistent session cookies --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5