Revert "Fix bug where session was destoryed with window close (#7251)"

This reverts commit 32fac136db.
bnet/additions
Aleksander Machniak 4 years ago
parent 15e924fd64
commit 808f374f42

@ -17,7 +17,6 @@ CHANGELOG Roundcube Webmail
- Fix handling keyservers configured with protocol prefix (#7295)
- Markasjunk: Fix marking as spam/ham on moving messages with Move menu (#7189)
- Markasjunk: Fix bug where moving to Junk was failing on messages selected with Select > All (#7206)
- Fix bug where session was destoryed with window close (#7251)
- Fix so imap error message is displayed to the user on folder create/update (#7245)
- Fix bug where a special folder couldn't be created if a special-use flag is not supported (#7147)

@ -457,7 +457,8 @@ class rcube
ini_set('session.gc_maxlifetime', $lifetime * 2);
}
ini_set('session.cookie_lifetime', $lifetime);
// 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);

@ -694,7 +694,7 @@ abstract class rcube_session
public function set_auth_cookie()
{
$this->cookie = $this->_mkcookie($this->now);
rcube_utils::setcookie($this->cookiename, $this->cookie, time() + $this->lifetime);
rcube_utils::setcookie($this->cookiename, $this->cookie, 0);
$_COOKIE[$this->cookiename] = $this->cookie;
}

Loading…
Cancel
Save