From 1bb97973b2667cd3ed0c6c6812c94e73edf0687d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 9 Oct 2017 10:22:00 +0200 Subject: [PATCH] Fix issue caused by non-default session.cookie_lifetime setting (#5961) --- CHANGELOG | 1 + program/lib/Roundcube/rcube.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 9eb3bc494..5ab2b0ccd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,7 @@ CHANGELOG Roundcube Webmail - Fix bug where mail search could return empty result on servers without SORT capability (#5973) - Fix bug where assets_path wasn't added to some watermark frames - Fix so untagged COPYUID responses are also supported according to RFC6851 (#5982) +- Fix issue caused by non-default session.cookie_lifetime setting (#5961) RELEASE 1.3.1 ------------- diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index 41d62de86..2b9e3bd31 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -515,6 +515,8 @@ class rcube ini_set('session.gc_maxlifetime', $lifetime * 2); } + // set session cookie lifetime so it never expires (#5961) + ini_set('session.cookie_lifetime', 0); ini_set('session.cookie_secure', $is_secure); ini_set('session.name', $sess_name ?: 'roundcube_sessid'); ini_set('session.use_cookies', 1);