Index

The badge you cannot take back (the session lifecycle)

Authentication
Authentication · Open board

One real login drawn end to end: how the password is checked, and how the browser stays logged in afterwards without sending it again. That second half is a pass the browser carries. This lesson is about everything that happens to the pass after it is handed out: how long it lives, how it is renewed, and how you take it back.

Before you start. Authentication gave you two ways to remember that someone already logged in. A session is a logbook entry kept at the front desk, and the browser carries only a random number pointing at it; crossing out the entry ends the login at once. A token is a badge stamped with the user and an expiry date in ink only the server can make; any door can check it without calling the desk, so crossing anything out does nothing until the date on it passes. Whose page is this? (the browser security model) showed the cookie flags that keep a browser from handing the pass to the wrong page. This lesson starts where both leave off: the pass has been copied.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Lab

You sign a stolen login out everywhere. How long does the thief's copy keep working?

Drag How long a badge lives from an hour to 15 minutes and watch the refreshes and the thief's window move.

Open The revocation window →

A million password hashes have been stolen. How much does a slower hash actually buy you?

Drag The password from 8 letters or digits to the most common ones and watch every row collapse.

Open The slow hash →

Related paper

Review Security →

Saved in this browser, and to your account when you sign in.