diff options
author | Andrew Dolgov <[email protected]> | 2007-08-19 07:37:06 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-19 07:37:06 +0100 |
commit | d54780bcf10a06c8bad8b4d38d82a6dbd7096865 (patch) | |
tree | a21dead7399588fa4b7501e080a4fd10288017e7 /functions.php | |
parent | 267ad38bf85a40b2ec079e735c8373b4031cbd77 (diff) |
only bump lang cookie when using persistent session cookies
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php index cefd4917f..11bb9d8a8 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); } |