I am struggling with a seemingly simple issue around firewalls and user providers in Symfony 4.4.
- I am using 2 firewalls & user providers for different user groups.
- On my homepage, I want to spare logged in users the marketing page and redirect them to the logged in area immediately. So I need to check if the browser is already logged in to either one of the firewalls. If yes, redirect to a specific page in the login-area.
Here's what's happening though: I tried to create a firewall using a chained user provider for the homepage, but it cannot access the logged in users from the other firewalls. The user is always null.
So my question is: How can I check if a user is logged in to a firewall/user provider that does not apply to the page I am currently on?