remove Expires header from egw_session::cache_control(true), so have same behavior as session_cache_limiter("private_no_expire")

This commit is contained in:
Ralf Becker 2014-01-28 15:06:47 +00:00
parent 60e3037bf8
commit a7724dc6e5

View File

@ -1690,9 +1690,10 @@ class egw_session
error_log(__METHOD__."($expire) called, but header already sent in $file: $line");
return;
}
if($expire === true)
if($expire === true) // same behavior as session_cache_limiter('private_no_expire')
{
header('Cache-Control: private, max-age='.(60*session_cache_expire()));
header_remove('Expires');
}
else
{