--- url: "https://www.w3.org/WAI/WCAG22/Techniques/failures/F58" titulek: "F58: Failure of Success Criterion 2.2.1 due to using server-side techniques to automatically redirect pages after a time-out | WAI | W3C" h1: "Technique F58:Failure of Success Criterion 2.2.1 due to using server-side techniques to automatically redirect pages after a time-out" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:32:37" znaku: 2698 slov: 379 kodovani: "utf-8" sha256: "8848e7399a843bdc35cf32113a43cb73754638be0f5d637405656c38989b8855" --- # Technique F58:Failure of Success Criterion 2.2.1 due to using server-side techniques to automatically redirect pages after a time-out ## About this Technique This technique relates to [2.2.1 Timing Adjustable](https://www.w3.org/WAI/WCAG22/Understanding/timing-adjustable) (**Failure**). Failure techniques show examples of how content can fail particular WCAG success criteria. However, content may still satisfy those criteria if it includes equivalent/alternative content or functionality that **does** meet the normative requirements. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description Server-side scripting languages allow developers to set the non-standard HTTP header "Refresh" with a time-out (in seconds) and a URI to which the browser is redirected after the specified time-out. If the time interval is too short, people who are blind will not have enough time to make their screen readers read the page before the page refreshes unexpectedly and causes the screen reader to begin reading at the top. Sighted users may also be disoriented by the unexpected refresh. The HTTP header that is set is Refresh: {time in seconds}; url={URI of new location}. It is also possible to omit the URI and obtain a periodically refreshing page, which causes the same problem. The HTTP header that is set is Refresh: {time in seconds}. ## Examples ### Example 1 The following example is a failure because a timed server-side redirect is implemented in Java Servlets or JavaServer Pages (JSP). ``` public void doGet (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); response.setHeader("Refresh", "10; URL=TargetPage.html"); out.println(""); out.println("Redirect"); out.println("

This page will redirect you in 10 seconds.

"); out.println(""); } ``` ## Related Resources *No endorsement implied.* - [RFC 9110: HTTP Semantics 15.4. Redirection 3xx](https://www.rfc-editor.org/rfc/rfc9110#name-redirection-3xx) ## Tests ### Procedure 1. Check to see if the web page automatically redirects to another page after some period of time without the user taking any action. 2. Check if the page qualifies for Real-time or Essential Exceptions in [Success Criterion 2.2.1 Timing Adjustable](/TR/WCAG/#timing-adjustable) . 3. Check if the user is provided an opportunity to turn off, extend, or adjust the timing of the page refresh. ### Expected Results - If check #1 is true and checks #2-3 are false then this failure condition applies and content fails the Success Criterion. Back to Top