Maintaining session state between subdomains
Im trying to maintain my session between subdomains. I have the following setup.
{tenant}.{product}.domain.com {tenant} might be null, in this case we will be redirected to an admin login and this is where my issue starts.
In my session.php my domain is set to ".domain.com". This works perfectly between subdomains like {tenant}.{product}.domain.com (tenant is here never null). But when i login from the admin panel {product}.domain.com, I want to redirect the admin to the correct tenant like {tenant}.{product}.domain.com but then the admin isn't logged in anymore.
Is the setup i'm trying to get too complicated for the default Laravel session system or am i missing something? Thank you in advance.
Please or to participate in this conversation.