<p>99% of the time when you see this behavior, it's because wherever your server is configured to save PHP's session files to either doesn't exist or isn't writable by PHP.</p>

<p>You can check where that path is by going to <code>yourdomain.com/admin/utils/phpinfo</code> and searching for <code>session.save_path</code>.</p>

<p>If you have the <a href="http://buildwithcraft.com/docs/config-settings#overridePhpSessionLocation" rel="nofollow">overridePhpSessionLocation</a> config setting set to <code>true</code>, then Craft will set that path to <code>craft/storage/runtime/cache</code>.</p>

CC BY-SA 3.0
2015-08-18T17:33:26.770Z
2015-08-18T18:03:16.380Z
2015-08-18T18:03:16.380Z
Brad Bell
<p>In my case it was caused by <code>session.handler = "memcache"</code>. I changed it to <code>session.handler = "files"</code> and made sure that <code>session.save_path</code> was writable and the issue was gone. This obviously didn't fix the cause, but was good enough as a solution for me at that time.</p>

CC BY-SA 3.0
2015-09-03T10:35:17.030Z
2015-09-03T10:35:17.030Z
Jan Klan
<p>Our Craft installation is now working on the Production Cloud-Server, except that if I'm logged in the CP, after maybe 30 sec the login-modal pops up and says that the session has expired.
If I just reload the CP, I'm in again without the need to login.</p>

<p>That behaviour didn't show up on the development server.
I didn't make any Configuration Settings like userSessionDuration or something like that, that's all default.</p>

<p>Any idea?</p>

CC BY-SA 3.0
2015-08-18T17:21:22.437Z
possible duplicate of [Getting "Session Ended" popup in admin](http://craftcms.stackexchange.com/questions/2731/getting-session-ended-popup-in-admin)
Paul
<control-panel><login><session>
CP Session expires after short time
# CP Session expires after short time

(Asked by: username_0 on 2015-08-18)

Our Craft installation is now working on the Production Cloud-Server, except that if I'm logged in the CP, after maybe 30 sec the login-modal pops up and says that the session has expired.
If I just reload the CP, I'm in again without the need to login.

That behaviour didn't show up on the development server.
I didn't make any Configuration Settings like userSessionDuration or something like that, that's all default.

Any idea?

**Tags:** control-panel, login, session

> **Comments:**
> **username_1**: possible duplicate of [Getting "Session Ended" popup in admin](http://craftcms.stackexchange.com/questions/2731/getting-session-ended-popup-in-admin)  

---

## 2 answers

### Answer by username_2 on 2015-08-18. Score: 1 | Accepted answer

99% of the time when you see this behavior, it's because wherever your server is configured to save PHP's session files to either doesn't exist or isn't writable by PHP.

You can check where that path is by going to `yourdomain.com/admin/utils/phpinfo` and searching for `session.save_path`.

If you have the [overridePhpSessionLocation](http://buildwithcraft.com/docs/config-settings#overridePhpSessionLocation) config setting set to `true`, then Craft will set that path to `craft/storage/runtime/cache`.


---

### Answer by username_3 on 2015-09-03. Score: 1

In my case it was caused by `session.handler = "memcache"`. I changed it to `session.handler = "files"` and made sure that `session.save_path` was writable and the issue was gone. This obviously didn't fix the cause, but was good enough as a solution for me at that time.


---

