Skip to content
academia.sh

Unit 01 of 03

State and Sessions

Cookies, sessions, configuration and environment variables — the mechanisms that decide which part of the state carried between requests lives on the client, which on the server and which in the deployment environment.

Published Updated

Lessons

  1. 01 Cookies How the cookie carries state on the client between requests, through the Set-Cookie header and its signed form; the four parties that classify who can change a result, and the ten-result measurement. 1 min read
  2. 02 Sessions The session mechanism that keeps state on the server: the ID in the session cookie, $_SESSION, session_regenerate_id(true), and the limit set by the party that carries the ID. 2 min read
  3. 03 Configuration and Environment Variables Separating deployment-dependent values such as the connection name and the key from the code and reading them from environment variables; the explicit error on a missing variable and the cost of a value fixed in code. 1 min read

Start typing to search.

↑↓ ↵ Esc navigate · open · close