Why doesn’t symfony 7 cookies not work, but vanilla php do?
In my little project I want a user imediadly log out if the user was banned (By Admin or by changing the Database with a tool). I tried to set a cookie with symfony but it dosen’t work. But if I use vanilla PHP for this solution it works as requested.
For this I use an eventlistener named “UserStatusListener.php” and in my LoginController I have a function to handle the logout-message (The reason why the user was logged out).