Answers.Body: <p>in the end, for me making</p>
  
  <pre><code>/opt/www/dave/web/tmp 
  </code></pre>
  
  <p>writable for craft was the solution. 
  thanks for all the feedback!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-03T08:20:52.183Z
Answers.Text: Thanks Dave.  Just to mention, if anyone is using WHM, then that setting will be in MultiPHP INI Edit, session.save_path
  
  Either setup a path to store the sessions or like I do use NULL.
Answers.UserDisplayName: Vin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-16T19:58:03.400Z
Answers.LastActivityDate: 2016-02-16T19:58:03.400Z
Answers.UserDisplayName: Dave Driesmans
Answers.Body: <p>Lots of stuff going on here.</p>
  
  <p>Number 2 and 4 are symptoms of your session problems.  Numbers 1 and 3 and most likely not related and should be their own, separate questions.</p>
  
  <p>For your session issues, there are <a href="https://craftcms.stackexchange.com/questions/952/craft-constantly-logging-out-from-admin-area">many things</a> that could cause you to get logged out on the admin, but your specific error message indicates that something is interfering/tampering with the cookie that Craft uses to maintain session (the authentication hash in the cookie doesn't match the authentication hash that Craft saved in the database when the session was started).</p>
  
  <p>To start debugging that first I'd disable any browser add-ons and make sure that you don't have any other authenticated sessions open on other browsers/tabs for the same domain while you're testing.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T15:37:43.247Z
Answers.Text: 1. was solved with a reinstall with the correct htaccess. 3. seems to be solved with the last update 2.5.2762    2 - 4 are persistent. even in private browsing i have the issue. any idea where to search further?
Answers.UserDisplayName: Dave Driesmans
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T16:06:12.397Z
Answers.Text: Also locally it works perfect
Answers.UserDisplayName: Dave Driesmans
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T16:43:32.907Z
Answers.Text: overridePhpSessionLocation  => false and removing craft/storage/runtime/ didn't help
Answers.UserDisplayName: Dave Driesmans
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T18:12:52.797Z
Answers.Text: Try clearing all of your cookies for the site as well as what's in the `craft_sessions` table? Note if it's a live site that will log anyone with a session out.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-11T07:32:32.697Z
Answers.Text: tried it out twice now but same situation
Answers.UserDisplayName: Dave Driesmans
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-11T10:24:03.103Z
Answers.Text: Are you on cloud hosting?
Answers.UserDisplayName: darylknight
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-11T14:20:04.347Z
Answers.Text: It's a linux VDS
Answers.UserDisplayName: Dave Driesmans
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T05:28:58.280Z
Answers.LastActivityDate: 2016-02-10T05:28:58.280Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm having trouble in the control panel. I'm get logged out all the time and I can't find the reason. The "Your session has ended" modal window appears all the time, I can just do a refresh and it stays in the control panel (logged in). Sometimes i'm also thrown out completely.</p>
  
  <p>What did i tried to solve it (together)</p>
  
  <ul>
  <li>'overridePhpSessionLocation' => true or false doesn't seem to make a difference</li>
  <li>removed my cookies</li>
  <li>craft/storage/runtime is on 777</li>
  <li>removed database content of craft_sessions</li>
  <li>removed craft/storage/runtime multiple times, it's created again. </li>
  <li>craft/storage/runtime/sessions stays empty and is on 777</li>
  </ul>
  
  <p>This is the error in the log files:</p>
  
  <blockquote>
    <p>2016/02/09 20:31:12 [warning] [application] Tried to restore session from a cookie, but the given hashed database token value does not appear to belong to the given login name. Hashed db value: cf349cc791478ab96e9229dad6367f1358f1404bczozMjoiMGQ0SUJxelZYYmdNUVh6WDhVdHhBODFUb0lWb2dGT0wiOw== and loginName: REDACTED</p>
  </blockquote>
  
  <p>(I edited the question to narrow down the problem. it's kinda driving me nuts)</p>
  
Tags: <admin><index>
Title: Trouble with login admin
ThreadText: # Trouble with login admin
  
  (Asked by: username_0 on 2016-02-09)
  
  I'm having trouble in the control panel. I'm get logged out all the time and I can't find the reason. The "Your session has ended" modal window appears all the time, I can just do a refresh and it stays in the control panel (logged in). Sometimes i'm also thrown out completely.
  
  What did i tried to solve it (together)
  
  * 'overridePhpSessionLocation' => true or false doesn't seem to make a difference
  * removed my cookies
  * craft/storage/runtime is on 777
  * removed database content of craft\_sessions
  * removed craft/storage/runtime multiple times, it's created again.
  * craft/storage/runtime/sessions stays empty and is on 777
  
  This is the error in the log files:
  
  > 2016/02/09 20:31:12 [warning] [application] Tried to restore session from a cookie, but the given hashed database token value does not appear to belong to the given login name. Hashed db value: cf349cc791478ab96e9229dad6367f1358f1404bczozMjoiMGQ0SUJxelZYYmdNUVh6WDhVdHhBODFUb0lWb2dGT0wiOw== and loginName: REDACTED
  
  (I edited the question to narrow down the problem. it's kinda driving me nuts)
  
  **Tags:** admin, index
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2016-02-16. Score: 1 | Accepted answer
  
  in the end, for me making
  
  ```
  /opt/www/username_0/web/tmp 
  
  ```
  
  writable for craft was the solution.
  thanks for all the feedback!
  
  > **Comments:**
  > **username_1**: Thanks username_0.  Just to mention, if anyone is using WHM, then that setting will be in MultiPHP INI Edit, session.save_path  Either setup a path to store the sessions or like I do use NULL.  
  
  ---
  
  ### Answer by username_2 on 2016-02-10. Score: 0
  
  Lots of stuff going on here.
  
  Number 2 and 4 are symptoms of your session problems. Numbers 1 and 3 and most likely not related and should be their own, separate questions.
  
  For your session issues, there are [many things](https://craftcms.stackexchange.com/questions/952/craft-constantly-logging-out-from-admin-area) that could cause you to get logged out on the admin, but your specific error message indicates that something is interfering/tampering with the cookie that Craft uses to maintain session (the authentication hash in the cookie doesn't match the authentication hash that Craft saved in the database when the session was started).
  
  To start debugging that first I'd disable any browser add-ons and make sure that you don't have any other authenticated sessions open on other browsers/tabs for the same domain while you're testing.
  
  > **Comments:**
  > **username_0**: 1. was solved with a reinstall with the correct htaccess. 3. seems to be solved with the last update 2.5.2762    2 - 4 are persistent. even in private browsing i have the issue. any idea where to search further?  
  > **username_0**: Also locally it works perfect  
  > **username_0**: overridePhpSessionLocation  => false and removing craft/storage/runtime/ didn't help  
  > **username_2**: Try clearing all of your cookies for the site as well as what's in the `craft_sessions` table? Note if it's a live site that will log anyone with a session out.  
  > **username_0**: tried it out twice now but same situation  
  > **username_3**: Are you on cloud hosting?  
  > **username_0**: It's a linux VDS  
  
  ---
  
  