Sessions not working in Symfony 4: test mode?

Solution: check out config/packages/test/framework.yaml – it holds a mock_file setting for cookies – preventing sessions from working as you would expect.

Comment out the session line and it’ll work as normal.

Leave a Reply

Your email address will not be published. Required fields are marked *