Though this has been a repeated question, all available solutions have not worked for me.
The issue is that in my app, I am redirecting user to /auth/logout
to logout. This in turn logs out a user and redirects to /auth/login
as it should. But clicking any navigation links on home page or refreshing the page redirects and logs in the user.
domain
in session.php
as 'xyz.com` because I am using the same session across subdomains./auth/login
several times will redirect to /
with session and sometimes won't. Pretty confusing.The problem seems to resolved for now if I redirect to xyz.com/auth/logout
instead of sub.xyz.com/auth/logout
.
Strange behaviour. No explanation though.