top of page

What is Session Timeout?

Oct 25
10 min read

Updated: Oct 27

Application session reaching an expiry deadline and requiring the user to sign in again.

 

A Session Timeout is a rule that ends or restricts a session after a defined period, such as a period without qualifying activity or a maximum time since sign-in. In a web application, it commonly means that the service will no longer accept the current session as sufficient permission to continue, so the user must sign in again.

 

The important question is which session has timed out. An application login, a remote desktop, a network connection and one request can have different timers. A page saying that your session has expired does not, by itself, mean that your broadband connection has failed.

 

For someone working from home, the visible result might be a sign-in prompt after lunch, a locked remote desktop or a form that refuses to submit. These symptoms can look similar while requiring different explanations. Understanding the timer and the component enforcing it is more useful than simply trying to keep everything connected indefinitely.

 

Idle time and total lifetime are different limits

 

An idle limit measures a gap in the activity that a particular service recognises. An overall or absolute limit constrains how long a session can continue even when the user remains active. Products differ in their terminology and in what resets each timer.

 

Timer or lifetime

What it measures and what it does not establish

Idle or inactivity timeout

A period since the last qualifying activity. Activity in another application may be irrelevant.

Overall or absolute session limit

A maximum duration against a defined authentication or creation baseline. Continued work does not necessarily extend it.

Session identifier renewal

Replacement of the identifier used for an ongoing session. It need not mean that the user has signed out.

Cookie or token expiry

The lifetime of a particular browser value or credential. It is not automatically identical to every server-side session rule.

Connection or request timeout

A limit on a transport connection or an individual operation, which may leave the application login unaffected.

 

NIST's current session-management guidance distinguishes inactivity from overall limits and treats successful reauthentication differently from ordinary session activity. This is guidance for its digital-identity context, not a universal timer imposed on UK websites.

 

When reading a product setting, establish its baseline explicitly. Does the timer start at the first sign-in, the latest successful reauthentication, session creation or the last qualifying request? Two settings both labelled “session lifetime” may produce different results because their baselines differ.

 

Follow a protected request through the session check

 

Consider a fictional browser application that stores a working draft on its server and requires an authenticated session to edit it. The following describes a common logical arrangement, rather than a requirement that every application use the same storage or authentication technology.

 

  1. The user signs in through the supported process, and the service establishes a session associated with that authentication.

  2. The browser retains the session information that it is permitted to use, commonly an opaque identifier in a cookie.

  3. A later request presents the relevant session information. The service checks whether it is valid and whether the requested action is allowed.

  4. The service evaluates its time limits against the appropriate timestamps. An accepted qualifying action may move the idle deadline without moving a separate maximum deadline.

  5. Once the applicable limit has expired, the service requires the appropriate fresh authentication before permitting protected work to continue.

 

A browser countdown can help the user anticipate the result, but the security decision cannot depend solely on that display. The server must enforce the relevant session rule even if the browser timer is paused, inaccurate or absent.

 

The page may discover expiry only when it next contacts the service. A document can therefore remain visible after the session is no longer valid. Being able to read an already displayed page is not proof that a new protected request will be accepted.

 

The infographic follows those roles and compares the two deadlines. Its times are invented for explanation; they are not recommended security settings or descriptions of Wix behaviour.

 

What is Session Timeout infographic explaining the mechanism, key stages and practical limits.

 

A worked timeline shows which deadline wins

 

Suppose our example application uses a 20-minute idle limit and a fixed eight-hour maximum for this session. Authentication occurs at 09:00, so the maximum deadline is 17:00. For this model, only qualifying requests accepted by the service reset the idle timer, and there is no intervening reauthentication.

 

Event in the example

Resulting deadline

Sign-in at 09:00

Idle deadline 09:20; maximum deadline 17:00.

Qualifying request at 09:12

Idle deadline moves to 09:32; maximum remains 17:00.

Another qualifying request at 09:25

Idle deadline moves to 09:45; maximum remains 17:00.

No further qualifying activity

The idle limit expires at 09:45. Leaving the page open does not change that calculation.

Separate scenario: activity continues until 16:55

The idle deadline would be 17:15, but the maximum deadline of 17:00 arrives first.

 

In this simplified model, the effective deadline is the earlier of “last qualifying activity plus 20 minutes” and “09:00 plus eight hours”. At 09:25, those candidates are 09:45 and 17:00. In the separate late-afternoon scenario, they are 17:15 and 17:00.

 

This arithmetic explains why a user can time out while apparently active: the maximum limit can win. It also explains why a short session may expire well before the end of the working day: the idle limit can win. The actual service may have additional policy checks or renewal rules, so use its documentation when applying the model.

 

What counts as activity?

 

Reading a long page, typing into an unsent field and making a request to the service are different events. A service might not know about local typing until the application sends something. Conversely, background polling may contact a server without demonstrating that the person is still present.

 

The application must define which events count. A saved edit, navigation request, explicit “continue” action and background status check need not receive identical treatment. A browser tab being open is not, on its own, a reliable measure of user presence.

 

This creates a practical design question for long forms. If the user spends time reading guidance or composing an answer, the service should make its timing understandable and provide an appropriate way to preserve work or request more time. Users should not have to discover the rule through repeated lost submissions.

 

Do not use artificial mouse movement, automatic refresh scripts or repeated requests as a substitute for an organisation's approved session policy. Such activity may fail to reset the relevant timer, interfere with the application or defeat the purpose of the control.

 

Session expiry is separate from connection reuse

 

A browser can establish a new network connection while continuing to use a valid application session. It can also keep a connection open while the application session expires. These states belong to different parts of the system.

 

The Persistent Connection article explains how reuse avoids repeating connection setup. Reusing that path does not tell the application that an old login should remain valid indefinitely.

 

A network keep-alive may test whether an endpoint responds or help maintain network state. That is not automatically qualifying human activity for an authentication policy. Increasing a network timeout will not necessarily change a sign-in deadline, and extending an application session will not repair a broken network path.

 

Likewise, a timed-out upload request does not necessarily mean the user has been signed out. Identify the failing operation and response before changing unrelated settings.

 

Cookies, tokens and single sign-on add separate lifetimes

 

A cookie can help the browser identify its session on subsequent requests. The service still decides whether that session is acceptable. Keeping a cookie on the device does not force the server to honour it forever, and deleting a local cookie is not a complete model of server-side logout.

 

An access token may also have its own validity period. A valid token is not necessarily evidence that the person is still at the keyboard. The authentication session, the token and the application state must be understood in the product's actual design.

 

Single sign-on can involve an identity provider and several applications, each maintaining its own session. Expiry in one application need not mean that all other applications have expired. Returning to the identity provider may result in a different experience depending on its remaining session and the application's requirement for fresh authentication.

 

Microsoft Entra documentation gives a useful product-specific distinction: sign-in frequency and persistent browser sessions control different aspects of the experience. Browser persistence can retain sign-in across closing and reopening a window, while reauthentication behaviour depends on policy and application interactions. Do not transfer that product's defaults to an unrelated service.

 

Locking, disconnecting and signing out are different outcomes

 

A locked desktop asks the user to unlock it. A disconnected remote desktop has lost its client connection while a server-side session may remain. Signing out ends the operating-system session and can close applications. These are not interchangeable instructions.

 

Microsoft's Remote Desktop Services troubleshooting documentation distinguishes active, idle, locked and disconnected states. Configured time limits and the policies that apply after disconnection affect what happens next. A connection window closing is therefore insufficient evidence that the remote work has ended.

 

The Remote Desktop article explains the screen-and-input relationship. When diagnosing a timeout, record whether the screen locked, the connection closed, the application requested sign-in or the operating system actually signed out.

 

The same care applies to a long-running task. Losing an interactive session does not universally cancel the task, and it does not universally preserve it. The application or remote environment must define task ownership, persistence and recovery.

 

An HTTP timeout code is not a login-expiry definition

 

HTTP 408 means that the server did not receive a complete request within the time it was willing to wait. HTTP 504 means that a gateway or proxy did not receive a timely response from an upstream server needed for the request. These describe request-handling conditions, not standard definitions of an expired user login.

 

A service can present its own session-expired page or sign-in redirect, and the precise response depends on its implementation. Record the actual message and, where appropriate, let the administrator correlate it with service logs. Guessing from the word “timeout” alone can send an investigation to the wrong layer.

 

Diagnose the symptom before changing the timer

 

Start with the exact time, application, message and action that triggered the problem. Note the last successful save or request and whether other services still work. Repeatable timing is useful evidence, but a regular interval is a clue to compare with policy, not conclusive proof of its cause.

 

Observation

Useful next check

Sign-in prompt after a quiet period

Compare the last qualifying activity with the application's idle rule.

Sign-in prompt despite continued work

Check maximum lifetime, reauthentication policy and what the service counts as activity.

Remote screen locks but applications remain

Distinguish a lock policy from disconnection or sign-out.

Remote connection closes

Check session messages, network events and the host's disconnection policies.

One operation returns 408 or 504

Investigate that request or upstream dependency rather than assuming login expiry.

One application expires while others remain usable

Compare the application's session with its identity provider and other independent sessions.

A form refuses to submit after a long pause

Establish session validity and whether a draft was saved before retrying.

 

For managed systems, ask the administrator to compare the effective policy, application logs and relevant gateway events. A local preference may be overridden by organisational policy. Change one understood setting at a time through the supported process, then verify the intended behaviour.

 

Do not share passwords, session cookies, tokens or unredacted private logs when asking for help. A screenshot of an error should also be checked for sensitive information before it is sent.

 

Recover without losing track of the work

 

If the service asks for authentication, use its normal trusted sign-in route. If the message or destination looks unexpected, establish that it is the genuine service before entering credentials.

 

After returning, inspect the saved draft, task state or operation history. An unsent field in a browser is different from a confirmed server-side save. Follow the application's recovery instructions and protect any permitted local copy of unfinished work appropriately.

 

Be particularly careful when the timeout appeared after submitting a change. A missing response does not always prove that the change failed. Check whether it already took effect before repeating an action that could create a duplicate record or other unintended result.

 

For recurring problems, preserve a concise sequence: sign-in time, last confirmed save, warning time, failure time and outcome after reauthentication. That sequence is much more useful than “it keeps logging me out”.

 

Balance exposure, usable time and accessible recovery

 

Leaving a session usable for too long can increase the opportunity for misuse of an unattended device or a stolen session identifier. Setting a very short limit can interrupt legitimate work. The appropriate balance depends on the resource, users, devices and consequences of unauthorised access.

 

The OWASP Session Management Cheat Sheet explains idle and absolute expiry alongside identifier renewal. Renewal changes the session identifier; it is not a replacement for deciding how long authenticated access should continue.

 

A good design explains the approaching limit, offers the supported continuation or sign-in action and handles unfinished work deliberately. Authentication lifetime and draft-retention policy should be considered separately: ending permission to edit need not require deleting a safely stored draft.

 

Accessibility matters because some people need longer to read, understand or enter information. W3C's Timing Adjustable guidance describes options to turn off, adjust or extend content-set time limits, with defined exceptions. It does not simply require disabling every security timer.

 

The UK DWP Design System provides a session-timeout pattern supporting the extension approach. Separately, WCAG's Timeouts criterion at Level AAA concerns warning about inactivity that could cause data loss, with an exception for sufficiently preserved data. These are different criteria, so a warning dialog alone should not be described as proof of complete accessibility compliance.

 

What can broadband changes actually fix?

 

An unreliable local Wi-Fi connection or Internet path can interrupt requests and remote connections. Improving that path can help those failures. It does not automatically change a service's deliberate sign-in expiry rule.

 

If other websites remain reachable and the affected application consistently requests sign-in at its documented deadline, compare the session policy first. If several services lose connectivity together, investigate the device, local network and provider path using the relevant evidence.

 

Buying more download capacity will not, by itself, extend a maximum authentication lifetime. Conversely, extending a login timer will not provide reliable delivery over a failing path. Match the remedy to the observed failure.

 

Frequently asked questions

 

Does leaving a tab open prevent session timeout?

 

Not necessarily. The service decides what counts as activity, and a maximum lifetime may apply even when qualifying activity continues.

 

Is a timeout the same as being disconnected?

 

No. An application can expire a login while the network still works. A remote connection can disconnect while a server-side session remains available.

 

Does moving the mouse reset the timer?

 

Only if the relevant system recognises that activity for that particular rule. Do not assume that local input reaches the service or overrides a maximum limit.

 

Will signing in again restore an unsaved form?

 

That depends on the application's draft and recovery design. Confirm what was saved rather than assuming that reauthentication reconstructs unsent input.

 

What is the best session timeout duration?

 

There is no single duration suitable for every service. Set and document it against the actual risks, workload, devices and accessibility needs, then test both expiry and recovery.

 

Key takeaway

 

Session Timeout is a lifetime rule for a particular session, not a diagnosis of every dropped connection. Identify the timer, its baseline, the activity that resets it and the component that enforces it. Then check what happens to authentication, the connection and the work separately, so recovery solves the actual problem without weakening an intentional control.

 
 
UK Techie Broadband Providers
bottom of page