# Is it possible to force Mautic to save session credentials?

**URL:** <https://forum.mautic.org/t/is-it-possible-to-force-mautic-to-save-session-credentials/20752>\
**Category:** Product Support\
**Tags:** mautic-3\
**Created:** [September 6, 2021, 6:58am UTC](https://forum.mautic.org/t/is-it-possible-to-force-mautic-to-save-session-credentials/20752 "2021-09-06T06:58:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ascar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ascar/32/5770_2.png) [@ascar](https://forum.mautic.org/u/ascar)\
**Post date:** [September 6, 2021, 6:58am UTC](https://forum.mautic.org/t/is-it-possible-to-force-mautic-to-save-session-credentials/20752/1 "2021-09-06T06:58:43Z")

</div>

**Mautic CE**  
My Mautic version is: 3.2.4  
My PHP version is: 7.3.28  
My Database type and version is: 5.7.33

**Mautic never saves login details**  
My problem is:

I have tried many things but Mautic refuses to save my credentials. So, every time I open my browser and need to access Mautic I have to log in with username/password.

Anyone is familiar with this behavior?

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 6, 2021, 7:00am UTC](https://forum.mautic.org/t/is-it-possible-to-force-mautic-to-save-session-credentials/20752/2 "2021-09-06T07:00:56Z")

</div>

Hi, there is an ongoing bug regarding to it:

> <https://github.com/mautic/mautic/issues/9011>
>
> \[//\]: # ( Invisible comment: 
> IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII…I
> Before you create the issue:
> IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
> Search for similar report among other reported issues.
> Learn how to troubleshoot at https://www.mautic.org/docs/en/tips/troubleshooting.html
> Use drag&drop to attach images or other files )
> 
> \## Bug Description
> Mautic sets a session cookie instead of a persistent cookie when \*\*keep me logged in\*\* is checked.
> 
> I’d say this is related to this change 9568806. For some reason, the cookie lifetime is always set to \`int(0)\`, even if the \`rememberme\_lifetime\` parameter has a correct value in config/local.php
> 
> | Q | A
> | --- | ---
> | Mautic version | 3.0.1
> | PHP version | 7.3
> | Browser | Firefox, Chrome
> 
> \### Steps to reproduce
> 1. Do a fresh install of Mautic 3.0.1. Use Mautic with the prod environment.
> 2. On the login form: fill the username/password + tick the \*\*keep me logged in\*\* box before pressing the \*\*login\*\* button.
> 3. Wait till the /s/dashboard page is displayed.
> 4. Close the browser. This will flush session cookies.
> 5. Re-open the browser and visit /s/dashboard
> 6. The login form is presented.
> 
> Expected behavior: access to /s/dashboard without re-authentication when a persistent session was previously opened. The problem is the same with any /s secure path, /s/dashboard is just an example here.
> 
> \### Log errors
> No errors in the log files
> 
> \[//\]: # ( Invisible comment:
> Please check for related errors in the latest log file in \[mautic root\]/app/log/ and/or the web server's logs and post them here. Be sure to remove sensitive information if applicable. )
> 
> 
> 
> 
> 
> \<bountysource-plugin\>
> 
> \---
> Want to back this issue? \*\*\[Post a bounty on it!\](https://www.bountysource.com/issues/92046785-keep-me-logged-in-not-working?utm\_campaign=plugin&utm\_content=tracker%2F5355074&utm\_medium=issues&utm\_source=github)\*\* We accept bounties via \[Bountysource\](https://www.bountysource.com/?utm\_campaign=plugin&utm\_content=tracker%2F5355074&utm\_medium=issues&utm\_source=github).
> \</bountysource-plugin\>

---

<div class="post-metadata">

**Author:** ![alexanderloewe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexanderloewe/32/637_2.png) [@alexanderloewe](https://forum.mautic.org/u/alexanderloewe)\
**Post date:** [September 6, 2021, 7:07pm UTC](https://forum.mautic.org/t/is-it-possible-to-force-mautic-to-save-session-credentials/20752/3 "2021-09-06T19:07:29Z")

</div>

Hello, i’m new here. How can I post a new topic?
