From 403d8453c8401fd016eadf91269ad26ed2a0cc2c 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 75d351cf8..0546900f7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -56,6 +56,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 a1a4d8b94..fc5cc0837 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);