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

is_logged_in is set on each request

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • Customer request
    • 4.2.0
    • Misc
    • None

    Description

      This seems to me unnessarcy.

      This code should improve it.
      if ( $currentUser->isLoggedIn()

      {header( 'Etag: ' . $currentUser->attribute( 'contentobject_id' ) ); } if ( $currentUser->isLoggedIn() and !isset( $_COOKIE['is_logged_in'] ) ) { setcookie( 'is_logged_in', 'true', 0, $cookiePath ); }

      else if ( !$currentUser->isLoggedIn() and isset( $_COOKIE['is_logged_in'] ) )
      {
      setcookie( 'is_logged_in', false, 0, $cookiePath );
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            oms Ole Marius Smestad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: