Skip to main content
Perceivly: Perceivly home

2.2.6 Timeouts

Level AAA · added in WCAG 2.1

If a period of inactivity can make users lose data, tell them how long that period is. You do not need the warning if you keep their data for more than 20 hours.

Who it helps

People with cognitive, memory or attention disabilities may need breaks or extra time to gather documents. Knowing the timeout up front lets them plan, prepare in advance or save their work before stepping away.

How to meet it

Examples

Fails:A form that silently times out after 15 minutes of inactivity
<h1>Apply for a parking permit</h1>
<form action="/apply" method="post">
  <!-- fields -->
</form>
Passes:The timeout and its effect are stated before the user starts
<h1>Apply for a parking permit</h1>
<p id="timeout-note">
  For your security, this form times out after 15 minutes of inactivity.
  Answers you have not submitted will be lost.
</p>
<form action="/apply" method="post" aria-describedby="timeout-note">
  <!-- fields -->
</form>

Can a scanner detect this?

No

axe-core has no rule for timeouts, because inactivity limits are set on the server and cannot be seen in the page code. Find out the session and form timeouts for each task. Then check that the page states them, or that data is kept for over 20 hours.

No automated rule tests this criterion. Check it by hand.

Common mistakes

Official W3C explanation of 2.2.6

Check your own page

See which automated WCAG checks your page fails, with the failing elements and how to fix them.

Enter a page address, for example example.com/shop.

Reviewed November 2, 2026