-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Method triggerRememberMe not called because of LazyResponseException #34761
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
Labels
Comments
A quick update, it seems that executing composer update resolved the issue:
Do you know why? |
Probably fixed by #34627 which is part of the 4.4.1 release |
Do you know what was causing this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 4.4.0
Description
I am developing a site using Symfony 4 and I noticed that remember me functionality is not working (the cookie is not set at all). I followed this tutorial:
https://symfony.com/doc/4.4/security/remember_me.html
Please see this post for all my configuration settings:
https://stackoverflow.com/questions/59086076/symfony-4-remember-me-cookie-not-set?noredirect=1#comment104435173_59086076
Essentially the remember me is not triggered at all:
Debugging into
setResponse
I saw that it's throwing aLazyResponseException
and so the next line is never reached.How to reproduce
Follow the remember me tutorial and set up a
GuardAuthenticationListener
.Possible Solution
Maybe the
triggerRememberMe
should be called earlier?Additional context
Please review the following StackOverflow post where you can find all the relevant classes and configurations:
https://stackoverflow.com/questions/59086076/symfony-4-remember-me-cookie-not-set?noredirect=1#comment104435173_59086076
Thanks.
The text was updated successfully, but these errors were encountered: