<ul>
<li>Using MAMP Pro 5.1</li>
<li>Apache, self-signed SSL cert</li>
<li>PHP 7.2.8 module mode

<ul>
<li>OPcache enabcled</li>
<li>Extensions: Xdebug, Imagick/ImageMagick</li>
</ul></li>
<li>Craft 3.1.22</li>
</ul>

<p>Basically I'm having the same problem as tons of other posts here, I keep getting the session ended popup in the cpanel frequently but refreshing the page still has me logged in.</p>

<p>While some posts seem to have solutions here for craft 2, I've tried to replicated them on craft 3 where I could but it's not working. I've tried:</p>

<ul>
<li>deleting storage/runtime/* </li>
<li>clearing all cookies, local storage, etc</li>
<li>restarting apache</li>
<li>using MAMP PROs Memcached instance and adding this to <code>app.php</code></li>
</ul>

<pre><code>'components' =&gt; [
            'cache' =&gt; [
                'class' =&gt; yii\caching\MemCache::class,
                'useMemcached' =&gt; true,
                'defaultDuration' =&gt; 86400,
                'servers' =&gt; [
                    [
                        'host' =&gt; '127.0.0.1',
                        'persistent' =&gt; true,
                        'port' =&gt; 11211,
                    ],
                ]
            ]
        ]
</code></pre>

<ul>
<li>a variety of combinations of these settings in <code>general.php</code></li>
</ul>

<pre><code>'useSecureCookies' =&gt; false
'requireMatchingUserAgentForSession' =&gt; false,
'requireUserAgentAndIpForSession' =&gt; false,
'defaultCookieDomain' =&gt; '.proposify.local',
'rememberedUserSessionDuration' =&gt; 999999,
'userSessionDuration' =&gt; 0
</code></pre>

<ul>
<li>session.auto_start = 0 set in php.ini</li>
</ul>

<p>When I'm in the CPanel I see this request in the network tab, which as soon as the response comes back pops up the session expired popup:</p>

<pre><code>https://myLocalDevDomain.com/index.php?p=admin/actions/users/get-remaining-session-time&amp;dontExtendSession=1
</code></pre>

<p>which returns this:</p>

<pre><code>{"timeout":0,"csrfTokenValue":"..."}
</code></pre>

<p>I've currently set chrome to block this request and am not getting the popup but this is of course not a great solution.</p>

CC BY-SA 4.0
2019-05-02T22:53:25.357Z
Check the value of the `CraftSessionId` cookie in the browser's console. Does it keep changing if you keep reloading the page?
Brad Bell
CC BY-SA 4.0
2019-05-06T11:56:58.000Z
it stays the same
Max Werner
CC BY-SA 4.0
2019-05-06T18:24:07.810Z
Any related errors in the Craft `storage/logs` folder or messages about authentication/being logged out?
Brad Bell
CC BY-SA 4.0
2019-05-07T10:59:43.430Z
none at all, and I'm not getting logged out, if I refresh the page I'm still logged in.
Max Werner
CC BY-SA 4.0
2019-05-07T19:20:01.437Z
Do you get the same behavior across multiple browsers?
Brad Bell
CC BY-SA 4.0
2019-05-09T13:19:04.377Z
I did until yesterday (most recent chrome, FF). I've now gone a day and a half without any modal popups without changing anything in craft or browsers.
Max Werner
CC BY-SA 4.0
2019-05-10T18:27:02.453Z
Yay computers!!
Brad Bell
<craft3><session><mamp>
Craft 3 Session Ended modal popping up on local machine
# Craft 3 Session Ended modal popping up on local machine

(Asked by: username_0 on 2019-05-02)

Using MAMP Pro 5.1
Apache, self-signed SSL cert
PHP 7.2.8 module mode


OPcache enabcled
Extensions: Xdebug, Imagick/ImageMagick

Craft 3.1.22

Basically I'm having the same problem as tons of other posts here, I keep getting the session ended popup in the cpanel frequently but refreshing the page still has me logged in.
While some posts seem to have solutions here for craft 2, I've tried to replicated them on craft 3 where I could but it's not working. I've tried:

deleting storage/runtime/* 
clearing all cookies, local storage, etc
restarting apache
using MAMP PROs Memcached instance and adding this to app.php

'components' => [
            'cache' => [
                'class' => yii\caching\MemCache::class,
                'useMemcached' => true,
                'defaultDuration' => 86400,
                'servers' => [
                    [
                        'host' => '127.0.0.1',
                        'persistent' => true,
                        'port' => 11211,
                    ],
                ]
            ]
        ]


a variety of combinations of these settings in general.php

'useSecureCookies' => false
'requireMatchingUserAgentForSession' => false,
'requireUserAgentAndIpForSession' => false,
'defaultCookieDomain' => '.proposify.local',
'rememberedUserSessionDuration' => 999999,
'userSessionDuration' => 0


session.auto_start = 0 set in php.ini

When I'm in the CPanel I see this request in the network tab, which as soon as the response comes back pops up the session expired popup:
https://myLocalDevDomain.com/index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1

which returns this:
{"timeout":0,"csrfTokenValue":"..."}

I've currently set chrome to block this request and am not getting the popup but this is of course not a great solution.

**Tags:** craft3, session, mamp

> **Comments:**
> **username_1**: Check the value of the `CraftSessionId` cookie in the browser's console. Does it keep changing if you keep reloading the page?  
> **username_0**: it stays the same  
> **username_1**: Any related errors in the Craft `storage/logs` folder or messages about authentication/being logged out?  
> **username_0**: none at all, and I'm not getting logged out, if I refresh the page I'm still logged in.  
> **username_1**: Do you get the same behavior across multiple browsers?  
> **username_0**: I did until yesterday (most recent chrome, FF). I've now gone a day and a half without any modal popups without changing anything in craft or browsers.  
> **username_1**: Yay computers!!  

---

## 0 answers

