# Session expired - please login

**URL:** <https://forum.mautic.org/t/session-expired-please-login/18399>\
**Category:** Product Support\
**Created:** [March 2, 2021, 5:25pm UTC](https://forum.mautic.org/t/session-expired-please-login/18399 "2021-03-02T17:25:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [May 1, 2023, 8:04am UTC](https://forum.mautic.org/t/session-expired-please-login/18399/6 "2023-05-01T08:04:41Z")

</div>

**Later edit**  
it seems that the “remember me” checkbox works properly since 4.4.1: [https://github.com/mautic/mautic/pull/11363](https://github.com/mautic/mautic/pull/11363)

**Later later edit**  
the cookie does not work properly with Froala Editor. The File browser to insert an image (elfinder) comes with an error (401 unauthorized). See more here: [Checkbox "remember me" (cookie): Elfinder: 401 unauthorized error](https://forum.mautic.org/t/checkbox-remember-me-cookie-elfinder-401-unauthorized-error/27946)

**Old post content**  
I hoped the issue is solved in the new version of Mautic (4.4.8) - but no, the bug is still present. Does anyone know an “out of the box” solution, that comes with Mautic, without being necessary to add some JS-code in the app.js or change the php.ini or …?

This subject was discussed also here:

> [@Mautic logs me out every X minutes. I want to be logged in for 1 month at least!](https://forum.mautic.org/t/mautic-logs-me-out-every-x-minutes-i-want-to-be-logged-in-for-1-month-at-least/26081):
>
> When using mautic, I login into the dashboard and I then I do other things. I come back and it has logged out. I want it to be like google or facebook: Keep me logged in “forever” until I close the session. How can I achieve this?

The solution I use:  
I add this line of code to keep me logged in:  
`jQuery(function () {setInterval(function(){jQuery.ajax({method: 'GET',url: 'https://m.ionutojica.com/s/credentials'});}, 9 * 1000 * 60);/*every 9 minutes*/});`  
at the end of `media/js/app.js`. But as soon as the browser restarts, I need to login again.

---

_[View the full topic](https://forum.mautic.org/t/session-expired-please-login/18399)._
