Flask SECRET_KEY auto‑generation causing session loss after restart
Goal: Ensure that Flask user sessions remain valid across application restarts when moving from a local development setup to a production environment. Constraint: If the SECRET_KEY configuration is omitted, Flask generates a new random key on each process start, which invalidates existing session cookies; local tests may not reveal the problem when server‑si