Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookies issue #65

Open
Namtor-FFM opened this issue Dec 5, 2023 · 4 comments
Open

Cookies issue #65

Namtor-FFM opened this issue Dec 5, 2023 · 4 comments

Comments

@Namtor-FFM
Copy link

Hello,

Some months ago, I told you that I had an issue with the automatic logout. Although I setup the SESSION_LIFETIME variable to 1 (sec), PasswordManager never log out automatically.
#58

I think that I found something interesting regarding this issue. When I login into PasswordManager, 3 Cookies are generated:

  • vAt5NjcBNQeMKGO7HxKOE8dgltLpNnGO5ltpoghd
  • password-manager
  • remember_web_59ba36addc2b2f9401580f014c7f58ea4e30989d
    The cookie remember_web_59ba36addc2b2f9401580f014c7f58ea4e30989d has an expire date of more than a year. When I update its date like the other cookies, then PasswordManager logs out automatically as expected.

image

Do you think that you can do anything here?
Many thanks.

@eusonlito
Copy link
Owner

Can you paste your SESSION_ variables from .env?

@Namtor-FFM
Copy link
Author

SESSION_DRIVER=cookie
SESSION_LIFETIME=1
SESSION_COOKIE=password-manager
SESSION_ENCRYPT=false

@eusonlito
Copy link
Owner

If you change the SESSION_DRIVER to file and redo caches with php artisan optimize, the result is the same?

@Namtor-FFM
Copy link
Author

I now have only 2 cookies:

  • password-manager
  • remember_web_59ba36addc2b2f9401580f014c7f58ea4e30989d
    But the result is the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants