The next situation might sound a bit strange but we are facing the following problem:
We created a bundle (with the console generator) and added our controllers and views inside them.
The bundle works like a charm on all places but when we try to login in pimcore (/admin) we get a csrf-token mismatch.
The bundle does nothing with a session. We also made the pimcore bundle a symfony bundle and enabled it in appKernel.php --> same result.
When we disable the bundle everything is working fine again. 20 hours debugging later and still experience the same CSRF problem.
When we look inside the session files we see the when we acces /admin there are2 or 3 sess_ files created, 1 wiith the correct csrf-token inside it and the other files are empty.
The one that resolve this issue will be rewarded!
I can’t add the bundle as an attachment but I can send it to you if needed.
Thanks in advance, Koert