Is there a trick to keeping your user logged in with the Symfony EasyAdmin bundle? I have no problem when running things locally, but when working in a production environment, weird things happen, and I see no errors in the logs.

Sometimes, when I log in, I’m 302 redirected right back to the login page. Sometimes, it actually takes me to the admin, but the moment I click on any link, I'm logged out. I can't seem to stay logged in.

#PHP #Symfony

@ramsey In the projects where we use EasyAdmin, that doesn't happen… Is there perhaps something wrong with your configuration? A conflict or something?
@tobiaskoengeter I don’t know. I don’t have this problem in local dev, so I can’t debug it.
@tobiaskoengeter This has happened before (about a year ago), and I gave up working on it, so I started over a few weeks ago, and now, it’s happening again. This is just a vanilla EasyAdmin install. I haven’t changed anything from the defaults.
@ramsey That’s odd! So it can’t really be a ‘special configuration’. Could it be down to the sessions, and that in turn to the browser settings?
@tobiaskoengeter I think it must be something to do with the sessions, but I’ve tried in Safari, Vivaldi, and Firefox, and I have this problem in all three, so if it’s a browser setting, it’s something I’ve enabled in all of them.
@tobiaskoengeter But it’s also weird that none of the browsers have this problem when I run it locally.
@tobiaskoengeter I’m giving up for the night. Tonight was the first time I had deployed it to prod since I began working on this iteration of it, and I forgot this had been a problem in the past. 😞