Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Timeouts without warning or extension: how to find and fix them

PRF-340Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A timeout is any time limit your site sets: a login session that ends after inactivity, a form token that expires, a cart that empties, a booking slot held for a few minutes, or a countdown on a checkout. The problem is when it ends silently. The visitor gets no warning and no way to ask for more time.

Why it costs you leads or sales

How a silent timeout loses a lead (Example)
  1. 0:00

    Visitor starts a long quote form.

  2. 8:00

    They stop to answer a phone call. No activity.

  3. 15:00

    The session expires. Nothing on screen changes.

  4. 17:00

    They press Submit and get 'Session expired' or a blank form.

  5. 17:30

    They leave without retyping the answers.

Where the journey breaks
  1. Open formSession starts
  2. Fill in fieldsTakes longer than the limit
  3. Session expiresNo warning, no extension
  4. SubmitError or data gone
  5. Lead or saleNever recorded

The session ends while the visitor is still working, so the later steps never happen.

How to check if your site has it

Where to look
  • Login or account area: how long until you are logged out when idle?
  • Long forms and multi-step forms: leave one open and idle, then submit.
  • Checkout and cart: does the cart empty or a payment page expire?
  • Booking tools: is a slot held with a countdown?
  • Security tokens: does a form show 'link expired' or 'nonce invalid' after a while?
  • Any countdown timer on a page, and whether it can be paused or extended.
  • Auto-redirects or meta refresh tags that move people away after a delay.
Manual test
  1. Find the configured limit

    Check your platform or code for session lifetime, token expiry and cart expiry values.

  2. Fill the form and wait

    Fill most of a form, then wait just past the limit. Use a private window so cookies are clean.

  3. Watch what happens

    Note whether a warning appears before expiry, whether you can extend with one action, and whether your answers survive.

  4. Try keyboard only

    Check that any warning can be reached and dismissed with the keyboard, and that a screen reader announces it.

How to fix it

Fix by platform
  1. Lengthen login and nonce life

    Use the auth_cookie_expiration filter for logins. Form plugins with cached pages can show expired nonces, so exclude form pages from full-page caching or use the plugin's option to skip nonce checks on public forms.

  2. Warn before logout

    For member areas, use a session-timeout plugin that shows a warning with a Stay logged in button, and test it with a keyboard.

Session warning with an extend buttonjavascript
const LIMIT = 15 * 60 * 1000;
const WARN_BEFORE = 2 * 60 * 1000;
let warnTimer;

function startTimer() {
  clearTimeout(warnTimer);
  warnTimer = setTimeout(showWarning, LIMIT - WARN_BEFORE);
}

function showWarning() {
  const dlg = document.getElementById('session-dialog');
  dlg.showModal();
}

document.getElementById('extend-btn').addEventListener('click', async () => {
  await fetch('/session/refresh', { method: 'POST', credentials: 'same-origin' });
  document.getElementById('session-dialog').close();
  startTimer();
});

startTimer();
Dialog markuphtml
<dialog id="session-dialog" aria-labelledby="sd-title">
  <h2 id="sd-title">Your session is about to expire</h2>
  <p>You will be signed out in 2 minutes. Do you need more time?</p>
  <button id="extend-btn">Stay signed in</button>
</dialog>
Silent expiry vs warned and extendable

Before

  • Session ends with no message
  • Submit fails with a generic error
  • Typed answers are lost

After

  • Dialog appears 2 minutes before expiry
  • One button extends the session
  • Draft answers are saved and restored

How to confirm it's fixed

Retest
  • Idle past the warning point: a dialog appears.
  • Press the extend button with keyboard only: the session continues.
  • A screen reader announces the dialog when it opens.
  • Let the session fully expire: your answers are still there after logging in again.
  • No page shows a countdown that cannot be paused or extended.

How to prevent it happening again

How FunnelGuard handles this

Questions people ask

What is WCAG 2.2.1 Timing Adjustable?

It is a level A accessibility rule saying that if content has a time limit, users must be able to turn it off, adjust it, or extend it. A warning must be given, with at least 20 seconds to extend using a simple action. Essential limits and real-time events are exceptions.

Why does my form say session expired?

The security token or session behind the form has passed its lifetime, often because the page sat open or a cached page held an old token. Lengthen the lifetime, avoid caching form pages, and warn visitors before it ends.

How do I add a session timeout warning?

Start a timer when the page loads and show an accessible dialog a couple of minutes before expiry. Include a button that refreshes the session and restarts the timer. Make sure keyboard users and screen readers can use it.

How long should a session timeout be?

WCAG does not set a number. Use the longest limit your security needs, warn at least 20 seconds before it ends, and give a simple way to extend. For long forms, save progress so the length matters less.

Do countdown timers on checkout break accessibility rules?

They can, if people cannot pause or extend the time. A genuinely essential limit may be allowed, but a marketing urgency timer usually is not. Prefer to remove it or let users extend it.

Can a timeout lose me leads?

Yes. If a visitor spends time on a long form and the session silently ends, their answers can be lost and many will not retype them. The effect is greatest on quotes, applications and checkouts.

Does FunnelGuard check for timeouts without warning?

No. This is outside what FunnelGuard checks and needs a manual accessibility review or audit tool with human testing. FunnelGuard runs your customer journeys on a schedule to check that steps, tracking and test leads work.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.