Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14828

is_logged_in cookie always set removed even if not currently set

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.2, 4.2.0alpha1
    • 4.1.0
    • Caching
    • 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 );
           }
      

      Attachments

        Activity

          People

            andre1 andre1
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: