Accessible Session Timeout UX: Warnings, Extensions, and Reauthentication
An unexpected sign-out can turn a nearly finished task into a restart. Someone may be reading carefully, using a screen reader, entering information with a switch, or stepping away to find a document. The interface sees inactivity; the person sees lost time and possibly lost work.
A good session-expiration experience balances three things: give people enough time to complete a task, protect an account when a session is no longer active, and let someone recover safely if the session does end. A countdown dialog alone does not solve all three. The warning, extension action, save strategy, authentication step, and return destination form one continuous interaction.
Start with the reason for the timeout
Before designing a timer, ask what it protects. Is the limit required by a security policy, a shared-device context, a short-lived verification step, or a real-time transaction? Could the task use a longer session, explicit sign-out, or a less disruptive safeguard instead? Removing unnecessary time pressure is usually simpler than teaching every person to race a clock.
Map where the limit applies. A global inactivity rule may affect a dashboard differently from a multi-step application, payment, message, or benefits form. Identify what counts as activity, which tabs share a session, what happens to unsaved changes, and whether a timeout is triggered by the browser, application, or identity provider. These details determine what the interface can honestly promise.
WCAG 2.2 Success Criterion 2.2.1, Timing Adjustable, says that for a time limit set by the content, at least one specified option must apply: users can turn it off, adjust it over a wide range, extend it after a warning, or the limit meets an exception. Its extension option includes a warning before expiry, at least 20 seconds to respond, and the ability to extend at least ten times. This is a criterion with exceptions and context; do not reduce it to “show a pop-up.” WCAG 2.2.5, Re-authenticating, is Level AAA and says that after an authenticated session expires, users can continue the activity without data loss after reauthenticating. Apply the criteria relevant to your conformance target and get an accessibility review for the whole implementation.
SaaS Data Import UX: Mapping, Validation, and Recovery
Make the warning a useful decision, not a trap
A warning should tell people what is about to happen, when it will happen in plain language, and what they can do. For example: “You’ll be signed out soon because this account has been inactive. Select ‘Continue session’ to keep working. If you’re signed out, your application will be saved and you can return after signing in.” Only make the last promise if the system can guarantee it.
Use a clear heading, concise explanation, and a prominent action with a meaningful label such as Continue session. Avoid a button labeled only “OK,” an ambiguous “Stay,” or a message that relies on color or a rapidly changing countdown. Provide the remaining time as text if showing a countdown, and ensure the announcement does not overwhelm screen-reader users with repeated updates. Put keyboard focus somewhere predictable when the dialog opens, keep it within the modal while it is active, and return focus sensibly if the dialog closes. Do not make a pointer-only action the sole way to add time.
Let people dismiss the warning only when dismissal has a clear meaning. If choosing “Not now” leaves the timeout unchanged, say so. If the person can save and leave, make that a distinct action. Do not treat activity in the warning itself as consent to extend unless the product clearly explains that behavior. If a timeout is close, the extension should not require a multi-step explanation or re-entering unrelated account details.
Example of a better warning
Your session is about to end
Continue your session to keep working. If you do nothing, we’ll sign you out. Your application is saved and will be available after you sign in again.
[Continue session] [Sign out]
The example is intentionally specific about the outcome. If an application is not saved until a particular checkpoint, the message must instead state that and offer a way to save or review before expiry.
Preserve work deliberately
“Save the form” can mean several different things: persist a draft on the server, keep data temporarily in the browser, or retain it only in the current page. Decide which fields may be saved, where they are stored, how long they remain, and who can retrieve them. A server-side draft tied to the account can survive a browser refresh and support a safe return after sign-in, but it needs access controls and an expiry policy. Browser storage may help with a short interruption, but it can be exposed on shared devices and may disappear when storage is cleared. Neither approach should be assumed safe without a threat and privacy review.
Save at meaningful points rather than waiting until the final submit. Show a modest, accessible status such as “Saved just now” when the save succeeds; do not communicate success before persistence completes. If a save fails, explain the consequence and next step. For uploads, multi-step forms, or long answers, preserve completed information and identify any field that needs to be repeated. Never silently drop a partially entered response or present a blank form as if nothing happened.
Before authentication, avoid rendering private answers into a page that could be seen by the next person using a shared device. After successful authentication, restore the task and its progress. If a draft cannot be retained for security reasons, be explicit before the user begins the timed portion and offer a safe checkpoint or save-and-return route where possible.
Reauthenticate and return to the same task
When the session expires, explain why the person needs to sign in again and what will happen next. Keep the authentication step focused. Avoid asking users to repeat information already supplied unless it is genuinely needed for verification. If a verification code expires independently, explain that the code has expired and provide a clear way to request another one; do not imply that the entire application has disappeared.
After reauthentication, return to the exact task state: the same application, step, selected options, and safe-to-display answers. Confirm what has been restored in a brief status message. If the original task is no longer valid—for example, an item has changed—explain the change and let the user review it. Handle authentication failure without destroying the saved draft; provide a route to try again or recover access without exposing sensitive data.
Consider multiple tabs, too. If one tab renews the session, another should not show a stale warning and sign the person out unexpectedly. If a session ends in one tab, make the others communicate the state change in a controlled way. Test refresh, browser back, network interruption, a second device, and a return after the warning has already elapsed.
A practical design and test checklist
- Document the purpose and scope of each timeout; remove limits that are not needed.
- Identify whether the timer starts at sign-in, inactivity, a verification step, or another event.
- Check the applicable timing and reauthentication requirements with accessibility specialists.
- Make the warning perceivable, keyboard-operable, understandable, and non-disruptive to assistive technology.
- Offer an extension action that is easy to activate and explain how many opportunities remain only if that helps the user.
- Save task data securely and verify it is actually persisted before saying so.
- Test expiry during typing, assistive-technology use, an upload, a network outage, and a backgrounded tab.
- Confirm that reauthentication restores progress without revealing it before the account is verified.
- Include people with disabilities and people using shared or low-bandwidth devices in usability testing.
- Monitor failed saves, repeat submissions, abandoned tasks, and support contacts as clues—not as a substitute for direct research.
A session timeout is part of the task, not a separate security screen. Designing the complete recovery path means people can take the time they need while the service still protects the account and its data.