How Web Authentication Works: Cookies, Sessions, Tokens, and OAuth
The web was built to forget you between every request, so every login system you have ever used is a clever workaround for that fact. Here is how cookies, sessions, tokens, and OAuth actually fit together, and where each one bites.
