Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.1.0
-
None
Description
On every request there will be a:
Set-Cookie: is_logged_in=deleted; expires=Mon, 28-Apr-2008 09:58:59 GMT; path=/
in the http headers even if user doean't have this cookie.
This seems to cause some issue for some reverse proxies (not being able to cache anything because of Set-Cookie.
Proposed patch:
Index: index.php =================================================================== --- index.php (revision 23494) +++ index.php (working copy) @@ -745,7 +744,7 @@ setcookie( 'is_logged_in', 'true', 0, $cookiePath ); header( 'Etag: ' . $currentUser->attribute( 'contentobject_id' ) ); } - else + else if ( isset( $_COOKIE['is_logged_in'] ) ) { setcookie( 'is_logged_in', false, 0, $cookiePath ); }