Answer the question
In order to leave comments, you need to log in
Losing session data on logout?
I open the site
I look at the debug-bar and remember the cookies responsible for the session I
put the goods in the basket (the basket is stored in the session)
I do the login
I look at the debug-bar I see that after the login the value of the cookie has changed
while the basket remains saved
I logout /logout
I look at the debug-bar I see that the value of the cookie has changed again
and the basket is gone
how can I solve the problem of losing the basket?
Answer the question
In order to leave comments, you need to log in
symfony.com/doc/current/reference/configuration/se...
There is a `invalidate_session` parameter in the `logout` section
Read about the session mechanism. Understand why this is happening.
Store the cart in the database. And to drag in session at login.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question