M
M
magary42017-04-05 11:12:39
symfony
magary4, 2017-04-05 11:12:39

Login/logout cache issue?

In the sales environment I
fill out the login form - the page is reloaded but instead of “hello user” it displays “please login” those {% if app.user %} is false
if the page is reloaded with the GET parameter ?_=123 then after that the condition becomes true
the same thing with the logout , the page is reloaded but continues to write “hello user” and only after reloading with the parameter ?_=321 does it change
how to do it more beautifully without garbage in the url?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2017-04-13
@kylt_lichnosti

It would be nice to show some code. security.yml there, controller, form, template code that it displays, entity if any, routing.
Purely, so that the eye would have something to catch on.
Well, I'll leave it here: symfony.com/doc/current/security.html
Well, I found it: symfony.com/doc/current/security.html#retrieving-t...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question