Site Confidence All articles
Digital Trust & Measurement

The Session That Outlives the Customer: Drilling Logout on Shared Devices

Site Confidence
The Session That Outlives the Customer: Drilling Logout on Shared Devices

Photo: shared tablet logout screen public library close up, via lemaclinic.com

A customer presses Log out and walks away. The screen returns to a sign-in page, the tab closes, and everyone feels finished. But logout is not a visual state. It is a set of promises about tokens, cookies, caches, push subscriptions and server-side sessions. On a personal phone those promises are easy to keep. On a shared device they are the difference between a tidy handover and an account that quietly remains available to the next person in the room.

Most UK digital teams can describe their sign-in journey in detail: password rules, passkey fallbacks, one-time codes, error states. Ask for the logout journey and the answer often becomes a single sentence. That imbalance is worth correcting, because sign-out is where trust is tested by absence. Nobody notices a good logout. They notice a bad one, usually at the worst possible moment.

Why Shared Devices Change the Threat Model

A family tablet passed between adults and children is a shared device. So is a public library terminal in a council building, a clinic kiosk used by patients in a waiting room, a customer-service desk tablet, or a work phone handed between shift staff. In each case the person who signs in is not necessarily the person who next picks up the device.

The risk is not only a borrowed screen. It is the long tail of session artefacts that survive a superficial logout: refresh tokens, device-bound credentials, service-worker caches, saved form data, push notification registrations, and single sign-on sessions held by an identity provider. A logout button that clears only the visible cookie may leave enough behind for a stale session to be resumed.

This is a trust and measurement problem, not merely a development task. The privacy notice makes claims about session length and device behaviour. The logout button makes a claim too. Both need evidence.

What 'Logged Out' Actually Means

Before testing, define the termination claims in plain language. A useful claim set looks like this:

Each claim needs a test, an owner and a pass condition. Without that, logout remains a matter of opinion.

The Shared-Device Matrix

Do not test only the happy path on a clean browser. Build a small matrix that reflects how UK customers actually encounter shared screens. Include a family tablet with a persistent browser profile, a library-style terminal that resets between users, a clinic kiosk with a locked-down browser, and a work phone handed over mid-shift. Add at least one scenario where the device is offline at logout and reconnects later. That last case is where stale sessions often reveal themselves.

Use controlled test accounts and a test environment. The aim is to observe behaviour, not to probe production customer accounts.

A Six-Step Termination Drill

1. Inventory the session estate

List every artefact that can carry authentication or account state: session cookies, refresh tokens, access tokens, device tokens, local storage entries, cached API responses, push subscriptions and identity-provider sessions. For each, record where it lives and how logout is supposed to remove or invalidate it.

2. Write the promise down

Convert the privacy notice and internal design intent into testable statements. If the notice says a 'remember me' session lasts 30 days, that is a test case. If it says logout ends the session on that device, that is a test case too.

3. Test the shared-device journey

Sign in on a shared-device profile, complete a transaction, log out, and then attempt to reach an authenticated page using the back button, a saved bookmark and a restored tab. Repeat after a browser restart. Observe whether cached pages render account data after logout. A page that displays a customer name from cache is still a trust failure, even if the server would reject a fresh request.

4. Revoke on credential change

Change a password and measure how long sessions on other devices remain usable. Record the revocation window and compare it with the promise made to customers. Test both the primary session and any refresh token that could silently renew access.

5. Audit 'remember me'

Run a controlled test that records the actual session lifetime against the stated lifetime. Check whether the option is explained clearly, whether it is offered on shared-device journeys, and whether the customer can revoke it later. A persistent session that outlives its description is a measurement failure before it is a security failure.

6. Measure the stale-session half-life

Define a simple metric: the time between a logout event and the last successful authenticated request that can be made with the previous session artefacts. In a controlled environment, attempt replay at intervals and record the results. The target is not a vague 'soon'. It is a stated maximum, monitored over time.

Reporting the Evidence

A session-termination drill should produce a short evidence pack: the claim set, the device matrix, the observed revocation times, any cached-data findings, and the gaps between promise and behaviour. Present it alongside other trust signals rather than as a standalone security report. The audience is not only engineering. It includes the teams who write privacy notices, design account journeys and handle customer complaints.

Where a gap is found, state the customer-visible consequence. 'Refresh token remained valid for 18 minutes after logout on a shared tablet' is more useful than 'session invalidation issue'.

Cadence and Ownership

Run the drill before major account changes, before peak trading periods, and at least quarterly for shared-device journeys. Give it a named owner in the identity or platform team, with a reviewer from trust and compliance. Keep the matrix small enough to repeat and broad enough to catch regressions.

Logout is a promise that the customer rarely reads and always expects. Testing it is how UK digital teams turn that expectation into evidence. The sign-in page gets the spotlight; the sign-out path deserves a rehearsal of its own.

All Articles

Related Articles

Locked Out by Design: Rehearsing Passkey Recovery as a Security Control

Locked Out by Design: Rehearsing Passkey Recovery as a Security Control

The Window Within the Window: Auditing Social In-App Browsers as a Trust Surface

The Window Within the Window: Auditing Social In-App Browsers as a Trust Surface

The Rewind Test: Rehearsing Checkout Recovery When Customers Press Back

The Rewind Test: Rehearsing Checkout Recovery When Customers Press Back