Answers.Body: <p>Turned out to be a browser issue specific to one mac. And we also noticed that when using chromes device mode it seemed to kill the session!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-23T17:17:53.020Z
Answers.Text: Chrome's device model probably changes the user agent string, so you'd want to set this to false: https://craftcms.com/docs/config-settings#requireMatchingUserAgentForSession
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-23T12:23:13.527Z
Answers.LastActivityDate: 2016-03-23T12:23:13.527Z
Answers.UserDisplayName: Lettie
Body: <p>We have a strange issue with a site we are developing. We have a user login on the front-end of the site which takes users to their profile pages. The issue we have is that on a Mac the user is being logged out randomly and irregularly on the local server.</p>
  
  <p>This is odd because on PC this issue is not occurring. And what makes it even more strange is if the user is logged in as admin, whilst the user is logged out on the front-end they are still logged into the CMS?</p>
  
  <p>Has anyone come across this issue before? I've tried some of the suggestions made in this post but nothing seems to be working.</p>
  
  <p><a href="https://craftcms.stackexchange.com/questions/952/craft-constantly-logging-out-from-admin-area">Craft constantly logging out from admin area</a> </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-17T22:00:55.347Z
Comments.Text: If it were http://craftcms.stackexchange.com/questions/952/craft-constantly-logging-out-from-admin-area, then it'd be happening consistently for everyone.  2 thoughts: 1) Something on the Mac browser you're using is messing with cookies which affect sessions (add-on, extensions, etc) and 2) your front-end template logic is wrong and when you think the user is logged out, they're actually not.
Comments.UserDisplayName: Brad Bell
Tags: <login><session>
Title: Strange issue with logging out user on frontend
ThreadText: # Strange issue with logging out user on frontend
  
  (Asked by: username_0 on 2016-03-17)
  
  We have a strange issue with a site we are developing. We have a user login on the front-end of the site which takes users to their profile pages. The issue we have is that on a Mac the user is being logged out randomly and irregularly on the local server.
  
  This is odd because on PC this issue is not occurring. And what makes it even more strange is if the user is logged in as admin, whilst the user is logged out on the front-end they are still logged into the CMS?
  
  Has anyone come across this issue before? I've tried some of the suggestions made in this post but nothing seems to be working.
  
  [Craft constantly logging out from admin area](https://craftcms.stackexchange.com/questions/952/craft-constantly-logging-out-from-admin-area)
  
  **Tags:** login, session
  
  > **Comments:**
  > **username_1**: If it were http://craftcms.stackexchange.com/questions/952/craft-constantly-logging-out-from-admin-area, then it'd be happening consistently for everyone.  2 thoughts: 1) Something on the Mac browser you're using is messing with cookies which affect sessions (add-on, extensions, etc) and 2) your front-end template logic is wrong and when you think the user is logged out, they're actually not.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-03-23. Score: 1 | Accepted answer
  
  Turned out to be a browser issue specific to one mac. And we also noticed that when using chromes device mode it seemed to kill the session!
  
  > **Comments:**
  > **username_1**: Chrome's device model probably changes the user agent string, so you'd want to set this to false: https://craftcms.com/docs/config-settings#requireMatchingUserAgentForSession  
  
  ---
  
  