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
0:00
Visitor starts a long quote form.
8:00
They stop to answer a phone call. No activity.
15:00
The session expires. Nothing on screen changes.
17:00
They press Submit and get 'Session expired' or a blank form.
17:30
They leave without retyping the answers.
- Open formSession starts
- Fill in fieldsTakes longer than the limit
- Session expiresNo warning, no extension
- SubmitError or data gone
- 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
- 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.
Find the configured limit
Check your platform or code for session lifetime, token expiry and cart expiry values.
Fill the form and wait
Fill most of a form, then wait just past the limit. Use a private window so cookies are clean.
Watch what happens
Note whether a warning appears before expiry, whether you can extend with one action, and whether your answers survive.
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
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.
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.
Avoid short custom timers
If a theme or app adds a countdown or cart-expiry timer, turn it off or choose an option that lets shoppers extend it. Shopify's own checkout handles its session, so test it rather than editing it.
Add a warning dialog
Show an accessible dialog about 2 minutes before expiry with a Stay signed in button that refreshes the session. See the snippet below.
Keep form data
Save drafts to localStorage or the server so a refresh or re-login restores the answers.
Remove auto timers
Check Interactions and custom code for timed redirects or auto-closing elements, and remove them or add a pause control.
Review funnel timers
If a funnel page uses a countdown timer element or a redirect on timer end, make sure it does not remove the form. Prefer an evergreen message over a hard cutoff.
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 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>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
- 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.
Related issues
- PRF-312Keyboard trap in modal or widgetFix guide
- PRF-313Form cannot be completed with keyboard onlyFix guide
- PRF-315Focus not moved into opened modal / not returned on closeFix guide
- PRF-308Form errors not announced to screen readers (no aria-live)Fix guide
- PRF-305Form inputs without labels (placeholder only)Fix guide
- PRF-300Text colour contrast below 4.5:1Fix guide