Logged in on www, logged out without it
If your app answers on both www and the bare domain, users can log in and still look logged out. Here's why, the fix, and how to test it.
A user logs in, gets bounced to the dashboard, and lands on the login page again.
Often the cause is two addresses for one app. Your app answers on both www.myapp.com and myapp.com. A login cookie set without a Domain attribute only belongs to the exact host that set it. So if the login happens on one and the redirect or email link points to the other, the browser simply doesn't send the session.
The fix: pick one address, permanently redirect the other to it, and use that same address everywhere: your auth provider's site URL, redirect URLs, and the links in your emails.
Test it right now: open your app without www, log in, then click a link from your login or reset email.
Want your signup and login flows watched for you? Start with a free check at FunnelSitter.