Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Shipping User Accounts

Sign-up, login, “forgot password,” and knowing who is looking at the screen right now: nearly every application needs this, and almost none should write it from scratch. Password hashing, sessions, and the dozen small security details around them are code you want to inherit from a well-maintained package, not reinvent under a deadline. Timing attacks, session fixation, and rate limiting have all been solved before you started.

A reception desk where a small elephant in a cap checks the badge of the first person in a short queue. Behind the desk, a rack of keys and a door marked with a padlock