Your Checkout Session Timeout Is an Accessibility Failure Before It Is a Security Feature

The shopper removes an out of stock item, the cart total changes, a red banner appears at the top of the page, and their screen reader says nothing at all. Visually the error is handled. For a blind shopper the cart just silently changed, and the next thing they hear is a total that does not match the one they were quoted a minute ago.

WCAG 2.2 criterion 2.2.1, Timing Adjustable, is Level A. When a session has a time limit, the user must be able to turn it off, adjust it, or extend it, and a warning has to appear before expiry with at least 20 seconds to act on it. Checkout timeouts that silently clear a cart fail that criterion outright, and they fail screen reader and switch users first, because everything those users do takes more keystrokes.

What the criterion actually demands

The rule has three acceptable shapes: the user can turn the limit off before it starts, adjust it to at least ten times the default, or be warned before it expires and given at least 20 seconds to extend it with a simple action. A fourth exception covers limits longer than 20 hours, which no checkout has ever had. Most retail timeouts implement none of the three. The cart simply empties, sometimes with a line of text afterwards explaining that it did.

The 20 second floor is the detail teams miss. A warning dialog that appears with a five second countdown is not a warning, it is a notification of loss. And the extension action itself has to be operable by keyboard and announced to assistive technology, or the users the criterion exists for cannot use it in the time given.

Why checkout is where it bites hardest

Checkout is the slowest page in any store for an assistive technology user, through no fault of theirs. Payment fields, address lookups, and delivery options each take sequential navigation, and a screen reader user works through every option a sighted user skims in one glance. A 10 or 15 minute inactivity limit that a mouse user never notices is a genuine deadline for them.

The failure also compounds. A timed-out session that clears the cart forces a full restart, and a timed-out session that keeps the cart but kills the payment step forces re-entry of card details, the highest friction data on the page. Preserving the cart and the form state across a timeout is both the accessible behaviour and the commercially sensible one.

Fixing it without weakening the security case

The security argument for timeouts is real: abandoned sessions on shared machines should not hold payment state forever. The criterion does not forbid the timeout. It forbids the ambush. Warn at a fixed point before expiry, put the warning in an alert dialog that takes focus properly, offer one button to continue, and extend by a meaningful period, not another 60 seconds.

Then test it the way the criterion will be tested: keyboard only, screen reader running, starting at the payment step. If the warning is not announced, or focus is lost when it closes, the fix is not finished, however good it looks with a mouse.

Keep reading: Cart Errors That Screen Readers Never Announce Are Cart Errors That Never Get Fixed, The Promo Code Field: Three Labelling Failures That Look Like Design Choices, and Cart Quantity Steppers: The Small Control That Breaks Keyboard Checkout cover the nearby cases in this series.

Frequently asked questions

What does WCAG 2.2.1 require for session timeouts?

Criterion 2.2.1 Timing Adjustable, Level A, requires that for any time limit the user can turn it off, adjust it beforehand, or be warned before it expires and given at least 20 seconds to extend it with a simple action. Exceptions exist for real-time events, essential limits, and limits longer than 20 hours.

How much warning time is enough before a checkout times out?

The criterion sets the floor at 20 seconds to respond to the warning and extend the session. In practice, checkout warnings should give more, because the user may be mid-field in a payment form. What matters is that the warning arrives before expiry, is announced to assistive technology, and the extension takes one simple action.

Does clearing the cart on timeout fail WCAG?

A silent clear with no prior warning fails 2.2.1, because the user had no chance to extend. A timeout that warns properly can still clear data afterwards, but the better pattern is preserving the cart across the timeout and only expiring the payment session. That satisfies the security concern without destroying the user's work.

How should a timeout warning work with a screen reader?

It should be implemented as a proper modal alert: focus moves to it, its text is announced, the extend action is a clearly labelled button, and closing it returns focus to where the user was. A visual-only banner at the top of the page will not be noticed in time by someone navigating sequentially.