ascar
September 6, 2021, 6:58am
1
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:
joeyk
September 6, 2021, 7:00am
2
Hi, there is an ongoing bug regarding to it:
opened 12:18PM - 14 Jul 20 UTC
T1
bug
mautic-3
configuration
[//]: # ( 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>
1 Like
Hello, i’m new here. How can I post a new topic?