What breaks
Login redirect loop: the cookie is not sent back
The sign-in succeeds, the page flashes, and the user is back on the login screen again. Some users loop forever, and others get in only in a different browser.
Why does my login keep redirecting back to the login page?
A login loop almost always means the session cookie is set and then not sent back on the next request. The usual reasons are a cookie saved for the www version of the address while the site answers on the bare domain, a secure cookie set over a non-secure address, or a browser such as Safari that refuses a cookie in a cross-site context. Open the browser's developer tools, look at the response to the sign-in request for a Set-Cookie header, then check whether the next page request carries it. A simulated visitor logs in and follows the redirects, and the report shows which step loops.
What this looks like in a report
“I typed the password, the page went white for a second, and the login form came back. I did it three times. My colleague gets in from the same iPad, so it is probably my account.”
The fix. Set the session cookie for the exact host people use, redirect the bare domain and www to one address, and show a clear message when the browser refuses cookies, instead of a blank login again.
An illustration. Run a test to see your own.See a real sample report
The login sets a cookie that the next page never receives
A login loop is a short cycle of redirects: the app sends the user to a protected page, the page finds no session, and the app sends them to the login page again. The sign-in worked, so the server created the session. The fault is that the browser did not keep the cookie, or did not send it on the next request. A cookie stored for one address is not sent to another, so www and the bare domain act as two sites. A cookie marked secure is dropped on plain http. A browser that blocks third-party cookies drops a cookie set during a redirect through another domain.
- Sign in, then open the browser's network list. Does the sign-in response include a cookie that the next page does not send back?
- Compare the address bar with the domain on the cookie. Do they match, including www or no www?
- Load the site over https only. Does any step fall back to plain http and drop a secure cookie?
- Sign in from Safari and from Chrome. Does the loop appear in only one of them?
- Clear the site's cookies and sign in once. Does the first visit work and the second loop?
The cookie belongs to one address, and the loop uses another
A cookie is saved for a host and sent back only to that host. Set it on the www version and the browser will not send it to the bare domain, so a page there sees no session. Many sites redirect one version to the other, and a redirect is a second request the cookie may miss. The bookmark, the link in an email and the address typed by hand can each use a different version. The tell is the domain beside the cookie in storage, which should match the address bar. Choose one host for the whole site, redirect the others to it before the login starts, and check that the cookie is set for that host.
A secure cookie over plain http is dropped without an error
A cookie marked secure is only sent over https. If the sign-in response arrives over a non-secure address, the browser keeps nothing, and the next page sees no session. This happens after a redirect from an old http link, on a staging site without a certificate, or behind a proxy that terminates the connection and forwards plain http to the app. The sign-in still looks successful, because the server answered. Open the sign-in address with http in the address bar and see whether it redirects to https before the form. If it does not, fix the redirect first, then the cookie.
Safari and third-party rules drop a cookie set during a redirect
Safari blocks cookies in some cross-site contexts, and a sign-in that bounces through another domain can trigger that rule. An identity page on another domain sets the session, then sends the user back, and the browser refuses the cookie because the request came from elsewhere. Chrome may keep it while Safari drops it, which is why the loop seems to be a Safari bug. Read the network list for the redirect that carries the cookie, and check whether it is a cross-site response. Keep the session cookie on the same site as the page that reads it, and avoid a redirect through a second domain for the final step.
Tell the loop apart with a logged-in visitor's path
A simulated visitor signs in with a working account and follows every redirect. The report lists each page the visitor reached, in order, and the step where it returned to the login page. A loop that starts at the sign-in response points at the cookie. A loop that starts after a redirect to another domain points at the cross-site rule. A visitor that gets in on one address and loops on another points at the host choice. The screenshot at each step shows the page the visitor was sent to, which is often a blank page or the login form again.
What you get with Mimiq
- 01
Run it by hand, or on every pull request
Paste a link and a task in the app and watch the visitors work. Or run them on every preview deploy: the GitHub Action comments on the pull request, any other CI can call the MCP endpoint, and your coding agent can run it too.
- 02
Bugs and usability problems in one report
The browser records errors and failed or slow requests on the step they happened. The visitors say where the wording or the steps confused them, and where they left.
- 03
Visitors that behave like your audience
Each visitor is a different profile with a reason to be there, matched to who the page is for, described by you, or built from your own customers.
- 04
A prompt to fix each problem
Every problem comes with a fix to paste into Cursor, Claude Code, Lovable or any coding agent, and one prompt hands over the top problems at once. Then send the same visitors through again.
- 05
Follow every visitor
See each visitor's whole path, step by step with screenshots, and what it was thinking at every step. Ask any visitor a question.
The browser records relevant JavaScript errors and failed or slow app requests encountered during the run, attached to the step where they occurred. The visitors are simulated: they find problems, they do not predict how many real people will convert.
A new domain or a redirect rule can start the loop again
Login loops return after a move to a new domain, a change to the redirect between the www and bare addresses, a new identity provider or a cached old redirect. Each can break sign-in for one browser only. Rerun the same sign-in in Safari and in Chrome after each change, on the address users type. With paid credits, visitors can sign in with a test account you give them, so the pages behind the login can be checked too.
Starter
Try it on one launch
24 visitors, about 4 tests of 5
- Visitors on your landing page, signup and checkout
- Where they left and why, with a fix to copy for each problem
- Run it in the app or on every pull request
- Ask any visitor a question, included
- Test accounts and protected previews
Builder
Test every build
100 visitors, about 20 tests of 5
- Everything in Starter
- Credits refill each month, and what is left rolls over once
- Cancel anytime
Pro
Test every release, as a team
300 visitors, about 60 tests of 5
- Everything in Starter
- Credits refill each month, and what is left rolls over once
- Cancel anytime
Scale
Test at scale, every day
1,200 visitors, about 240 tests of 5
- Everything in Starter
- Credits refill each month, and what is left rolls over once
- Priority support
- Cancel anytime
Questions
Does a simulated visitor show the cookies it received?
It shows the pages it reached in order, the step where the redirects repeated, and a screenshot of each. Use the browser's own network and storage tools on your side to see the cookie values and domains. The run tells you where the loop starts, and those tools tell you why the cookie was dropped.
Why does clearing cookies sometimes fix it?
A stale cookie for the wrong host, or an old session that expired, can block the next login until it is removed. Clearing it fixes the symptom for that user only. If the loop comes back after a fresh sign-in, the cookie rule is still wrong.
Can a test tell me which browsers will loop?
It runs the browsers you choose and reports what each visitor saw. It does not predict how many real users will loop in each browser. Count the loops in your own logs by browser to see which ones matter most.
Does a loop mean the password is wrong?
No. The password was accepted, because the server created a session. The loop happens after that, when the session cannot be found on the next request. A message that says the password is wrong here sends users to reset it for no reason.
Keep reading
Send visitors and see what breaks first.
Your first test is free: sign in with Google or email and it starts right away. Last checked 2026-12-03.