<p>I've got multiple sites running on XAMPP (I'm on Windows 10). Each has its own domain (eg. <code>dev.example.local</code>, <code>dev.otherexample.local</code>, etc).</p>
<p>When I try to have more than one site CP page open in the same browser, I tend to randomly encounter session timeout modal windows.</p>
<p>Craft 2 had the <code>overridePhpSessionLocation</code> which I suspect might help, but I can't find the equivalent in Craft 3.</p>
<p>Any suggestions?</p>

CC BY-SA 4.0
2020-07-02T13:41:16.667Z
Would `phpSessionName` help? Docs - https://docs.craftcms.com/v3/config/config-settings.html#phpsessionname
Oli
CC BY-SA 4.0
2020-07-02T14:47:52.480Z
I don't see how, unfortunately. Craft's session cookies appear to be properly scoped to the domain & subdomain.
Sandwich
CC BY-SA 4.0
2020-07-02T16:43:06.797Z
The replacement for `overridePhpSessionLocation` is to set https://www.php.net/manual/en/function.session-save-path.php directly in your php.ini file.
Brad Bell
CC BY-SA 4.0
2020-07-19T10:01:10.697Z
So turns out my PHP sessions are getting saved to `c:\xampp\tmp\`. It looks like they're all there, valid and writable and whatnot. No clue why I get logged-out of the Craft backend locally so much.
Sandwich
<control-panel><session>
Multiple (dev) sites running locally; session seemingly randomly times out
# Multiple (dev) sites running locally; session seemingly randomly times out

(Asked by: username_0 on 2020-07-02)

I've got multiple sites running on XAMPP (I'm on Windows 10). Each has its own domain (eg. `dev.example.local`, `dev.otherexample.local`, etc).

When I try to have more than one site CP page open in the same browser, I tend to randomly encounter session timeout modal windows.

Craft 2 had the `overridePhpSessionLocation` which I suspect might help, but I can't find the equivalent in Craft 3.

Any suggestions?

**Tags:** control-panel, session

> **Comments:**
> **username_1**: Would `phpSessionName` help? Docs - https://docs.craftcms.com/v3/config/config-settings.html#phpsessionname  
> **username_0**: I don't see how, unfortunately. Craft's session cookies appear to be properly scoped to the domain & subdomain.  
> **username_2**: The replacement for `overridePhpSessionLocation` is to set https://www.php.net/manual/en/function.session-save-path.php directly in your php.ini file.  
> **username_0**: So turns out my PHP sessions are getting saved to `c:\xampp\tmp\`. It looks like they're all there, valid and writable and whatnot. No clue why I get logged-out of the Craft backend locally so much.  

---

## 0 answers

