Tinker Logins and passwords

by Samy (Kondasamy Jayaraman)

The cloakroom desk and its tickets.

Chapter 5 of 7

The cloakroom ticket

Typing a password on every page would drive builders away. After sign-in, the site hands the browser a ticket, like a cloakroom’s.

This chapter: What proves it is Jo after sign-in, and what if someone copies it?

About this chapter

You will learn

  • A session cookie stands in for the password
  • Whoever shows it gets in
  • Signing out makes the site forget it

Words you’ll meet

Session cookie
A random ticket the site gives your browser after sign-in; the browser shows it on every request.
Session
How long a session cookie stays good: from sign-in to sign-out or expiry.
HttpOnly
A cookie setting that hides the cookie from scripts running on the page.

Step 1 of 5

Jo signs in once. The site hands her browser a : a random ticket it shows on every request.

Sign Jo in.