Software Testing / Learning brief

Tom and the cloakroom ticket

What this means in plain language

Lily is signed in without typing her password on every page. A cloakroom ticket shows how Tom checks the cookie that remembers her, and finds a visit that does not end when she signs out.

Understand the full idea, step by step

At a cloakroom you hand in a coat and get a ticket. The ticket carries only a reference number, but someone holding a copy may still claim your coat. The staff use it to find your coat.

Daily List, a to-do list app, hands your browser a ticket like that when you sign in. Tom, the tester, learns to check it.

PLAIN WORDS · 1 in this section
cloakroom
a room where coats and bags are left safely

Evidence & review

REVIEWED 2026-11-07

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Cookie, session identifier and local storage as taught in this academy. The people, the app and the values are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The claim that local storage is not sent with each request and the advice on lockout are general knowledge with no source in this lesson. Separate7November2026 review read the complete MDN (MDN is Mozilla's online web documentation) cookies/localStorage articles and selected complete Open Worldwide Application Security Project (OWASP) units named in appended locators. Identifier secrecy, scoped cookies, client/server expiry, private-mode storage and evidence-versus-cause limits are qualified. No live product session security certification.

Sources for this brief — 9 sources
  1. Market practice

    Using HyperText Transfer Protocol (HTTP) cookies (Mozilla developer docs) ↗ — Mozilla (developer documentation) · After sign-in the server sets a cookie holding a session identifier and the browser sends it back with later requests; a cookie with no expiry is a session cookie; setting the expiry in the past removes a cookie; a new session cookie should be sent at sign-in to stop session fixation (search excerpt, page not opened)

    Per the search excerpt, after sign-in the server sets a cookie holding a session identifier and the browser sends it back with later requests. Without an expiry a cookie is a session cookie. A cookie is removed by setting its expiry in the past. The page advises sending a new session cookie at sign-in to stop session fixation. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Session management cheat sheet (Open Worldwide Application Security Project) ↗ — Open Worldwide Application Security Project (OWASP) · The session identifier must be renewed after any change in privilege such as sign-in, and the old one destroyed, which prevents session fixation (search excerpt, page not opened)

    Per the search excerpt, the session identifier must be renewed after any change in privilege such as sign-in, and the old one destroyed; this prevents session fixation. Practitioner guidance, not a standard. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    Verification supplement, 6 November 2026: Actual introduction/session-ID properties opened: authenticated session identifier is itself a secret capable of impersonation; opaque does not mean secret-free.

  3. Market practice

    Testing for cookies attributes (Open Worldwide Application Security Project Web Security Testing Guide) ↗ — Open Worldwide Application Security Project (OWASP) · Session cookies should carry the Secure and HttpOnly attributes, and a tester can check them in the browser's cookie view or with an intercepting proxy (search excerpt, page not opened)

    Per the search excerpt, session cookies should carry the Secure and HttpOnly attributes, and a tester can check them in the browser's cookie view or with an intercepting proxy. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Window: localStorage property (Mozilla developer docs, Web APIs) ↗ — Mozilla (developer documentation) · Local storage keeps key and value pairs for a site, has no expiry time, survives closing the browser and stores only strings (search excerpt, page not opened)

    Per the search excerpt, local storage keeps key and value pairs for a site, has no expiry time, survives closing the browser, and stores only strings. Session storage is cleared when the page session ends. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Market practice

    Insufficient session expiration (Open Worldwide Application Security Project Periodic Table of Vulnerabilities) ↗ — Open Worldwide Application Security Project (OWASP) · Insufficient session expiration: a session that stays valid too long, or after logout, lets someone reuse it (registry entry)

    Per the search excerpt, the root cause is a missing inactivity timeout or absolute timeout, a timeout that is too long, or a logout that does not end the session. The page is an archived wiki entry. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Archived wiki page. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  6. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

  7. Market practice

    Using HyperText Transfer Protocol (HTTP) cookies (Mozilla developer docs) ↗ — Mozilla (developer documentation) · Complete substantive cookie article read7November2026 (live page modified17September2026): scoped sending, expiration/session restore, matching deletion, attributes. Browser lifetime differs from server session validity; not binding legal guidance.

    Per the search excerpt, after sign-in the server sets a cookie holding a session identifier and the browser sends it back with later requests. Without an expiry a cookie is a session cookie. A cookie is removed by setting its expiry in the past. The page advises sending a new session cookie at sign-in to stop session fixation. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  8. Market practice

    Session management cheat sheet (Open Worldwide Application Security Project) ↗ — Open Worldwide Application Security Project (OWASP) · Complete Introduction, Session ID Content, Renew Session ID After Any Privilege Level Change, Session Expiration with all subsections and Limits of Logout on Browser Close, actually read7November2026. ID is secret; revoke session IDs server-side; distinguish cached display and continuing access.

    Per the search excerpt, the session identifier must be renewed after any change in privilege such as sign-in, and the old one destroyed; this prevents session fixation. Practitioner guidance, not a standard. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    Verification supplement, 6 November 2026: Actual introduction/session-ID properties opened: authenticated session identifier is itself a secret capable of impersonation; opaque does not mean secret-free.

  9. Market practice

    Window: localStorage property (Mozilla developer docs, Web APIs) ↗ — Mozilla (developer documentation) · Complete article read7November2026, modified12October2026: origin-bound strings, ordinary persistence, private session lifetime, policy exceptions; no guarantee of indefinite availability.

    Per the search excerpt, local storage keeps key and value pairs for a site, has no expiry time, survives closing the browser, and stores only strings. Session storage is cleared when the page session ends. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

Learn this properly

START HERECookies and sessionsA site remembers who you are with a small code the browser keeps and sends back. Testers check that the code is set, kept, refused when wrong and removed at sign-out.Opens at L0 Explain simply · about 14 min

Related briefs