diff options
author | Andrew Dolgov <[email protected]> | 2013-04-29 13:03:28 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-29 13:03:28 +0400 |
commit | e57a1507aeb349c9ba7d673048c5ccb43e2d639b (patch) | |
tree | 49d858eba83ea764cb72dd6e45377413d27d8523 /include/functions.php | |
parent | a845a3d5e5538fc63312b7f4e2e1475e568ab30b (diff) |
do not use session cookie lifetime for additional cookies
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index 5da657f2d..38c3eac32 100644 --- a/include/functions.php +++ b/include/functions.php @@ -5,6 +5,8 @@ define('LABEL_BASE_INDEX', -1024); define('PLUGIN_FEED_BASE_INDEX', -128); + define('COOKIE_LIFETIME_LONG', 86400*365); + $fetch_last_error = false; $fetch_last_error_code = false; $fetch_last_content_type = false; @@ -796,9 +798,9 @@ $_SESSION["last_login_update"] = time(); } - if ($_SESSION["uid"] && $_SESSION["language"] && SESSION_COOKIE_LIFETIME > 0) { + if ($_SESSION["uid"] && $_SESSION["language"]) { setcookie("ttrss_lang", $_SESSION["language"], - time() + SESSION_COOKIE_LIFETIME); + time() + COOKIE_LIFETIME_LONG); } if ($_SESSION["uid"]) { |