Start here. This is the direct spoken answer to practice first.
Why this question matters
Session state is a practical scale-out question. It tests whether the app can survive multiple instances, restarts, and rolling deployments.
I would prefer a stateless API when possible, using authentication tokens and durable server-side data rather than relying on per-instance session memory. If the product needs server-side session state, it must be stored somewhere shared, such as Redis or a database, because requests may go to different instances after scale-out. The key point is that local memory works only until another instance, restart, or deployment handles the next request.