Answers.Body: <p>I tracked down a similar problem, and documented it here: <a href="https://nystudio107.com/blog/the-case-of-the-missing-php-session" rel="nofollow noreferrer">The Case of the Missing PHP Session</a></p>
  
  <p>I'm not sure if it'll address the issue you're having specifically, but it may give you some clue on where to look.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-03T17:45:32.030Z
Answers.LastActivityDate: 2017-10-03T17:45:32.030Z
Answers.UserDisplayName: andrew.welch
Body: <p>Users are always logged out on the front end on my Craft website.  Even when logged in as admin I can access the CMS but on the front end user session always returns the following.</p>
  
  <pre><code>Craft\UserSessionService Object
  (
      [_identity:Craft\UserSessionService:private] =&gt; 
      [_identityCookie:Craft\UserSessionService:private] =&gt; 
      [_userModel:Craft\UserSessionService:private] =&gt; 
      [_userRow:Craft\UserSessionService:private] =&gt; 
      [_sessionRestoredFromCookie:Craft\UserSessionService:private] =&gt; 
      [_dontExtendSession:Craft\UserSessionService:private] =&gt; 
      [allowAutoLogin] =&gt; 1
      [guestName] =&gt; Guest
      [loginUrl] =&gt; Array
          (
              [0] =&gt; /site/login
          )
  
      [identityCookie] =&gt; 
      [authTimeout] =&gt; 259200
      [absoluteAuthTimeout] =&gt; 
      [autoRenewCookie] =&gt; 1
      [autoUpdateFlash] =&gt; 1
      [loginRequiredAjaxResponse] =&gt; 
      [_keyPrefix:CWebUser:private] =&gt; 4e3924125ff89a395a13e8e5580209e2
      [_access:CWebUser:private] =&gt; Array
          (
          )
  
      [behaviors] =&gt; Array
          (
          )
  
      [_initialized:CApplicationComponent:private] =&gt; 1
      [_e:CComponent:private] =&gt; 
      [_m:CComponent:private] =&gt; 
  )
  </code></pre>
  
  <p>Does anyone have any idea why this could be happening?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-03T18:36:38.407Z
Comments.Text: Is the Control Panel on a different domain/subdomain than the front-end of your site?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-03T21:13:29.683Z
Comments.Text: No its the same domain for CP and front-end.
Comments.UserDisplayName: Jahanzeb Khan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-04T00:37:19.533Z
Comments.Text: Weird... maybe something in @khalwat's answer helps?
Comments.UserDisplayName: Brad Bell
Tags: <frontend><login><current-user>
Title: Users are always logged out on front end
ThreadText: # Users are always logged out on front end
  
  (Asked by: username_0 on 2017-10-03)
  
  Users are always logged out on the front end on my Craft website. Even when logged in as admin I can access the CMS but on the front end user session always returns the following.
  
  ```
  Craft\UserSessionService Object
  (
      [_identity:Craft\UserSessionService:private] => 
      [_identityCookie:Craft\UserSessionService:private] => 
      [_userModel:Craft\UserSessionService:private] => 
      [_userRow:Craft\UserSessionService:private] => 
      [_sessionRestoredFromCookie:Craft\UserSessionService:private] => 
      [_dontExtendSession:Craft\UserSessionService:private] => 
      [allowAutoLogin] => 1
      [guestName] => Guest
      [loginUrl] => Array
          (
              [0] => /site/login
          )
  
      [identityCookie] => 
      [authTimeout] => 259200
      [absoluteAuthTimeout] => 
      [autoRenewCookie] => 1
      [autoUpdateFlash] => 1
      [loginRequiredAjaxResponse] => 
      [_keyPrefix:CWebUser:private] => 4e3924125ff89a395a13e8e5580209e2
      [_access:CWebUser:private] => Array
          (
          )
  
      [behaviors] => Array
          (
          )
  
      [_initialized:CApplicationComponent:private] => 1
      [_e:CComponent:private] => 
      [_m:CComponent:private] => 
  )
  
  ```
  
  Does anyone have any idea why this could be happening?
  
  **Tags:** frontend, login, current-user
  
  > **Comments:**
  > **username_1**: Is the Control Panel on a different domain/subdomain than the front-end of your site?  
  > **username_0**: No its the same domain for CP and front-end.  
  > **username_1**: Weird... maybe something in @khalwat's answer helps?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-10-03. Score: 4
  
  I tracked down a similar problem, and documented it here: [The Case of the Missing PHP Session](https://nystudio107.com/blog/the-case-of-the-missing-php-session)
  
  I'm not sure if it'll address the issue you're having specifically, but it may give you some clue on where to look.
  
  
  ---
  
  