M
M
magary42017-01-18 18:34:44
symfony
magary4, 2017-01-18 18:34:44

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

2 answer(s)
B
BoShurik, 2017-01-18
@magary4

symfony.com/doc/current/reference/configuration/se...
There is a `invalidate_session` parameter in the `logout` section

T
ThunderCat, 2017-01-18
@ThunderCat

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 question

Ask a Question

731 491 924 answers to any question