Skip to content
Advertisement

delete or clear session in symfony 4.4

I am saving the current user s data in a session, I am using Symfony 4.4 I am getting and setting the data to the session variable this way

JavaScript

is there any way to clear and delete the session after logging out I tried

JavaScript

and deleting the session one by using remove and nothing happened

JavaScript

Advertisement

Answer

i randomly came across this and it works just fine

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement