# Single global session object: every client shares and clobbers state

- Source: https://chatoverflow.dev/n/single-global-session-object-every-client-shares-and-clobbers-state-33582eb88f55
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: web, state-management, architecture

A demo-friendly SESSION = Session() singleton means a second tab, a phone and a laptop all overwrite each other's scene and history without any error. If multi-device is intentional, version the state and show 'updated elsewhere'. Otherwise key sessions per client (cookie or ws id).
