Skip to content

STA-004 Let people turn off, lengthen or extend a time limit the product sets

Level
Rule
Verdict
Requirement
Area
States
Status
decided, version 1.0.4

Rule

When the product sets a time limit that can end a person's chance to act or throw away their work, let them turn it off, lengthen it, or extend it after a warning, unless an exception applies. Each option meets 2.2.1 only with the conditions listed for it first under Do. Our advice is to prefer them in that order.

Examples

Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.

Do: A warning with one press to stay

Weekly planning

Try it: skip to the warning stands in for 13 minutes without activity. The warning opens with focus on Stay signed in. Press it, or Escape: the warning closes, focus goes back to the button and the note is untouched. Do it as often as you like. If the time runs out, you are signed out and the note is kept. The warning lasts 30 seconds here, shortened for the example; a product would give 2 minutes.

Don't: A countdown with no way to get more time

Weekly planning

Press Try it: skip to the warning and wait. A warning counts down from 10 seconds, with nothing to press to stay. At zero you are signed out and the note is gone.

Why

Some people read slowly, type with a switch or a head pointer, use a screen reader, or need to stop and think. A clock they cannot see or control can sign them out halfway through and take their work with it. WCAG 2.2, 2.2.1 Timing Adjustable requires one of the three options for every limit the content sets. A limit that exists for security, or that the product's own server enforces, still counts. It covers an idle sign-out, a session with a fixed maximum length, a hold on something the person has reserved, a step that must be done within a set time, and a page that refreshes or redirects on its own after a delay. No limit at all helps most, so ask first whether the limit is needed. A warning at the end helps least, because it still interrupts.

The warning has to reach everyone. If it appears without taking focus, it is a status message under WCAG 2.2, 4.1.3 Status Messages, and FBK-004 says how it is announced; losing work soon is the kind of warning FBK-004 keeps role="alert" for. The control that extends the limit must work from the keyboard, as WCAG 2.2, 2.1.1 Keyboard asks.

We also aim, beyond Level AA, for two things that WCAG places at Level AAA and does not require here. When a person signs in again after a lapse, they carry on where they were with nothing lost (WCAG 2.2, 2.2.5 Re-authenticating). And when idle time can lose their data, they are told how long that time is when the task starts (WCAG 2.2, 2.2.6 Timeouts). These are our aims, not part of the requirement.

Do

  • Option 1: turn it off. The person can switch the limit off before they reach it.
  • Option 2: lengthen it. Before they reach it, the person can set the limit to at least ten times the default, over a wide range.
  • Option 3: warn and extend. Before time runs out, warn the person, give them at least 20 seconds to answer, and let them extend the limit with one simple action, such as one button. Allow that at least ten times.
  • An internal admin tool signs people out after 30 minutes of inactivity. Under Settings, Security, the person can choose Sign me out after 30 minutes, 2 hours, 8 hours or Never on this device. The longest choice is far more than ten times the default.
  • A web app signs people out after 15 minutes idle. Two minutes before that, a dialog with role="alertdialog" opens: "You will be signed out in 2 minutes because you have been inactive." It has two buttons, Stay signed in and Sign out. One press of Stay signed in resets the clock, and the person can do that as often as they like.
  • The warning stays on screen until the person answers or the limit passes. It is never a toast that closes on a timer (FBK-005 and FBK-003 cover how long messages stay).
  • A person is typing in a dialog Edit invoice when the idle warning is due. No second dialog opens. A notice appears inside Edit invoice, above its buttons, with Stay signed in, the same way DLG-002 shows a failed main action. Focus stays where it was, and the notice is announced as FBK-004 says.
  • When no dialog is open, the warning may instead be an alert in the page with role="alert" and a Stay signed in button the person can reach by keyboard. It does not cover the element that has focus (KBD-002).
  • Pressing Escape on the warning dialog counts as Stay signed in. That is the button that leaves everything as it is, so DLG-001 gives it to Escape. It resets the clock and closes the warning. Escape never signs the person out, and it never just hides the warning while the clock keeps running.
  • Our own choice: give the warning dialog only Sign out and Stay signed in, with no Cancel, Close or close icon. A third way out would leave the person unsure whether the clock is still running.
  • After Stay signed in, focus returns to where the person was, and every field keeps what they typed. Extending never discards unsaved work, also in a full-screen dialog with unsaved changes (FRM-004a).
  • A support chat ends the conversation after five minutes without a reply from the person. A minute before that, a line in the chat says "This chat will close in 1 minute because we have not heard from you." with a button Keep the chat open. Each press gives five more minutes, and the line stays until the person answers or the chat closes.
  • A confirmation page shows "Your password has been changed" and a link Go to your account. It does not redirect on its own after five seconds. If a redirect is truly needed, let the person stop it or follow the link when they are ready.
  • Our aim beyond AA: the first step of a long customer survey says, once, "If you leave this survey for 45 minutes, it closes. Your answers so far are kept." When the person opens the survey link again, they return to the question they were on with their answers in place (FRM-009).
  • Our own choice: when the product runs in several tabs, the warning and the extension apply to the whole session, so choosing Stay signed in in one tab keeps the others signed in too.

Don't

  • Sign a person out after a period of inactivity with no warning, no setting and no way to extend.
  • Show a warning only 10 seconds before the limit, or show a countdown with no button to get more time.
  • Make the person type their password or solve a puzzle to extend the limit. One simple action is enough.
  • Allow only one or two extensions and then sign the person out anyway.
  • Show the warning as a toast that disappears after a few seconds.
  • Open the warning as a second dialog on top of a dialog the person is working in.
  • Throw away what the person typed when they extend the limit, or reload the page to do it.
  • Let Escape or closing the warning count as Sign out.
  • Refresh a page of open orders every two minutes on a timer while the person is reading or filling it in, with no way to stop it.
  • Treat a limit as essential just because it is convenient for the server.

Exceptions

  • Real-time events. When a live event cannot happen without the limit and no alternative is possible, such as a live poll that closes when the presenter moves to the next question, the three options do not apply.
  • Essential limits. When more time would break the point of the activity, the limit may stay, for example a timed reaction drill in a training game. Some security limits can count as essential, such as a sign-in code that lapses after a few minutes; the sign-in still follows FRM-008. Even then, move as much of the work as possible out of the timed part.
  • Limits longer than 20 hours. These are outside the requirement.
  • Limits outside the product. A limit set by the browser, the operating system or the network is not one the product sets. A limit the person chose themselves meets the second option only if the setting reaches at least ten times the default.
  • Short-lived messages. How long a toast or snackbar stays on screen, including one that holds a button, is covered by FBK-005 and FBK-003, not by this rule.
  • Limits on reading. Content that moves or updates on its own, such as a carousel, a ticker or a live feed, is outside this rule. WCAG 2.2, 2.2.1 Timing Adjustable and WCAG 2.2, 2.2.2 Pause, Stop, Hide still apply to it; VIS-005 covers the second.
  • After the limit passes. What the person sees once they have been signed out follows FBK-002, which says that news is never carried only by a message that closes itself.

Verdict

Requirement. Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work

Stances on STA-004
SourceRoleStancePage
WCAG 2.2LawRequires2.2.1 Timing Adjustable
WCAG 2.2LawSupports4.1.3 Status Messages
WCAG 2.2LawSupports2.1.1 Keyboard
Material DesignJudge No position
Apple Human Interface GuidelinesJudge No position
Carbon Design SystemJudge No position
GOV.UK Design SystemExpert witness No position
Nielsen Norman GroupExpert witness No position

Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.

History

  • Version 1.0.4, : The exception for limits on reading now points to VIS-005 for content that moves or updates on its own.
  • Version 1.0.3, : Shorter rule sentence; the detail moved to Do. No change in what the rule asks.
  • Version 1.0.2, : Escape means Stay signed in because that is the warning's dismissive action under DLG-001; the reason for leaving out Cancel is now our own.
  • Version 1.0.1, : Says that the warning dialog has no Cancel, Close or close icon, so Escape can mean Stay signed in without breaking DLG-001.
  • Version 1.0.0, : First version.

Last checked against the other rules for conflicts on .

More in States: 5 rules and 2 guidelines · All rules