<p>Most likely wherever Apache/PHP is configured to save session files doesn't exist or isn't writable.</p>

<p>If you've got the <a href="http://buildwithcraft.com/docs/config-settings#overridePhpSessionLocation">overridePhpSessionLocation</a> config setting set to <code>true</code>, then that will be in <code>craft/storage/runtime/sessions</code> folder.</p>

CC BY-SA 3.0
2015-05-07T04:18:20.603Z
Thank you very much. This appears to have solved the issue. I went ahead and added the overridePhpSessionLocation config setting and deleted the whole `craft/storage/runtime/` folder. When I logged in again with a private browsing window, Craft recreated all the necessary runtime cache files, and I'm not getting logged out any longer.
jsilton
CC BY-SA 3.0
2015-05-07T04:06:23.610Z
2015-05-07T04:06:23.610Z
Brad Bell
<p>I just moved my site from one MediaTemple (gs) instance to another. I copied and recreated the database on the new server, moved over all the files, and updated the internal references that pointed to the old site. I even cleared out the 'craft/storage/runtime/' folder.</p>

<p>Whenever I am logged in, I almost instantly get logged out. Typically, this is after 30-60 seconds.</p>

<p><img src="https://i.sstatic.net/wt8lm.png" alt="enter image description here"></p>

<p>Whether or not I enter in the correct password, the same message comes back up. However, I can go back to the main admin page, and I'm still logged in.</p>

<p>Any ideas what's going on? It seems to be a caching and session issue of some sort, but there is no caching setup on our server, and I cleared my browser cache completely.</p>

CC BY-SA 4.0
2018-07-19T07:35:43.320Z
There's a number of good answers at *[Craft constantly logging out from admin area](https://craftcms.stackexchange.com/questions/952/craft-constantly-logging-out-from-admin-area)*
Simon East
<admin><migration><login>
Migrated Server, Now Getting Logged Out Constantly
# Migrated Server, Now Getting Logged Out Constantly

(Asked by: username_0 on 2015-05-07)

I just moved my site from one MediaTemple (gs) instance to another. I copied and recreated the database on the new server, moved over all the files, and updated the internal references that pointed to the old site. I even cleared out the 'craft/storage/runtime/' folder.

Whenever I am logged in, I almost instantly get logged out. Typically, this is after 30-60 seconds.

![enter image description here](https://i.sstatic.net/wt8lm.png)

Whether or not I enter in the correct password, the same message comes back up. However, I can go back to the main admin page, and I'm still logged in.

Any ideas what's going on? It seems to be a caching and session issue of some sort, but there is no caching setup on our server, and I cleared my browser cache completely.

**Tags:** admin, migration, login

> **Comments:**
> **username_1**: There's a number of good answers at *[Craft constantly logging out from admin area](https://craftcms.stackexchange.com/questions/952/craft-constantly-logging-out-from-admin-area)*  

---

## 1 answers

### Answer by username_2 on 2015-05-07. Score: 10 | Accepted answer

Most likely wherever Apache/PHP is configured to save session files doesn't exist or isn't writable.

If you've got the [overridePhpSessionLocation](http://buildwithcraft.com/docs/config-settings#overridePhpSessionLocation) config setting set to `true`, then that will be in `craft/storage/runtime/sessions` folder.

> **Comments:**
> **username_0**: Thank you very much. This appears to have solved the issue. I went ahead and added the overridePhpSessionLocation config setting and deleted the whole `craft/storage/runtime/` folder. When I logged in again with a private browsing window, Craft recreated all the necessary runtime cache files, and I'm not getting logged out any longer.  

---

