What breaks

Session expired please log in again: find why

The user is partway through a form or a checkout, the app shows session expired, and everything they typed is gone. They wonder if the site is broken, or if they were the only one affected.

5 visitors try to .
First test free with an accountRun it from your coding agent

Why does my session expire and tell me to log in again?

The session ends for one of three reasons: an idle timeout that is shorter than the time a person spends on a form, a fixed lifetime that ends a session even while it is in use, or a token the browser thinks has expired because the device clock is wrong. A sign-out in another tab can end the session in every tab. Check how long the session lasted before the message, whether the user was idle, and whether they had another tab open. A simulated visitor fills a multi-step form and waits between steps, so the report shows the step where the session ended.

What this looks like in a report

Who
Tomoko, booking a driving lesson for her son
How they arrived
Opened a booking link from the driving school's text message
Where they stopped
Lesson details, after ten minutes of choosing a time

“I had picked a time and typed my address, then the page said my session expired. I had to log in, and my form was empty. I was not even doing anything else in another tab.”

The fix. Keep the draft in the browser and restore it after sign-in, and refresh the session quietly while the user is typing. Show a clear line before a timeout, with a button that keeps the session alive.

An illustration. Run a test to see your own.See a real sample report

The timer ends the session while the user is still filling in the form

A session has a lifetime set by the server, and a token in the browser that carries it. When the lifetime runs out, the next request is refused, and the app shows the expired message and sends the user to the sign-in page. A person who reads a long form, looks up a card number or switches to another app can run past a short idle timer. The form data is stored only in the page, so it disappears when the session ends. The user returns to a blank form with the words log in again, and most of them do not come back to finish it.

  • Note the time you signed in, then fill in a form and wait. When does the message appear?
  • Open the site in a second tab, then sign out in one. Does the first tab fail on its next click?
  • Compare the device clock with the real time. Is it off by more than a few minutes?
  • Stay on one page for the timeout you set. Does a request fail even when you are typing?
  • Submit the form after a long wait. Is the typed data still in the fields after the message?

The idle timer that ends a session during a long form

Idle timers are set in minutes, and they usually count from the last request rather than the last key press. A person who types a long answer, reads a price or checks a calendar sends no request for that time, so the timer runs out. Your logs show the session ended after the timer, with no activity from the user. Compare the idle timeout with the time a typical user spends on the slowest step of the form. If the step takes longer, extend the timer on typing, or refresh the session in the background while the page is open. The user should never see the message while they are still working.

A second tab that signs out, and a fixed lifetime that ends a live session

Many apps keep one session cookie for the whole site, so a sign-out in one tab ends the session in every other tab. A user who opens a second tab to check an address, then signs out there by accident, finds the first tab failing at its next click. A fixed lifetime works differently. It ends the session at a set time after sign-in, even while the user is active, so a long morning of work ends with a sudden message. Read the sign-in time in your logs and compare it with the message. A message that always comes at the same number of hours after sign-in is a fixed lifetime, and an idle message comes after a quiet stretch.

A clock that is wrong makes a valid session look expired

Session tokens carry an expiry time, and the browser or the app may compare that time with the device clock. A phone or laptop set a few hours off, or one that drifted after a long sleep, can judge a fresh token as expired on the first request. The user sees the message right after signing in, and signing in again changes nothing. The tell is a session that ends within seconds of starting, on one device only. Check the device's clock, and check whether the server or the client makes the expiry decision. Decisions made on the server are not affected by a wrong device clock.

Test the same form with a pause, then with a second tab

A simulated visitor is given a test account and fills in a multi-step form, pausing between steps for as long as your timeout allows and then a little longer. The report shows the step where the session ended, the time of the message, and a screenshot of the page with the typed data, or without it. A second run opens a second tab and signs out in it, so you can see whether the first tab fails. Together the two runs show whether the timer or the shared session is the cause.

What you get with Mimiq

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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 timeout or a new sign-in tab can end sessions early again

Expired-session messages return when someone shortens the timeout, adds a second app on the same domain, or changes how the session refreshes. A longer form can then fail where it passed before. Rerun the same long form with the same pauses after each change, on a preview address. With paid credits, visitors can sign in with a test account you give them, so forms behind a login can be checked this way.

Starter

Try it on one launch

$9 once
120 credits, never expire

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
Buy 120 credits

Builder

Test every build

$19 a month
500 credits every month

100 visitors, about 20 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Builder

Pro

Test every release, as a team

$49 a month
1,500 credits every month

300 visitors, about 60 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Pro

Scale

Test at scale, every day

$149 a month
6,000 credits every month

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
Choose Scale
$0for your first test, with a free account (Google or email, no card). It includes 50 credits, enough for 10 visitors. After that a visitor uses 5 credits, and packs start at $9 for 120 credits.
See a sample report

Questions

Can a simulated visitor tell me what the timeout should be?

No. It does not set a timeout for you, and it does not predict how long real users take. It tells you the step where the session ended after a pause you chose. Set the timeout from your own data on how long users spend on each form step, then run the form again with that pause.

Why does the message appear only on my customers' phones?

Phones often sleep in the background, and a sleeping page can keep an old token. Test on a phone, leaving the page idle for a while before you type, and compare the clock with your laptop's.

Should I keep the form data after the session ends?

Yes. Save the draft in the browser as the user types, and restore it after the next sign-in. That way a timeout costs a password, not the whole form. Clear the draft after a successful submit.

Does a test show how many users are logged out?

No. It does not predict rates for real users, and it cannot see your session store. It shows where one visitor was logged out and what they saw. Count the expired sessions in your own logs, by form and by device, to see how often it happens.

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.

5 visitors try to .