liveBook · Manning

Session management

Session management is the maintenance of state that associates related requests or interactions with a continuing user, client, application, or agent session.

How 2 Manning books explain it

The Well-Grounded Python Developer: How the pros use Python and Flask

Session management is the handling of state that associates successive requests with a user or client interaction.

How it is used
Keeps users logged in across requests and restricts protected URL endpoints to authenticated users.
How deep it goes
Works through a login sequence and shows integration points, but does not explain session storage internals.
Examples
Uses a blog login form, GET and POST requests, a user loader, and a redirect after successful authentication.
What you can do after
Apply it via flask_login to support login, logout, “remember me,” and authenticated endpoints.

Read how The Well-Grounded Python Developer: How the pros use Python and Flask explains session management →

Designing AI Systems

Session management is the creation, persistence, retrieval, and expiration of state associated with user or application sessions.

How it is used
Provides conversation memory as platform infrastructure, hiding persistence and context management from application developers.
How deep it goes
Defines five service operations and their request and response structures, without detailing storage implementation or expiration.
Examples
Uses a patient support workflow to illustrate resuming conversations, recording messages, retrieving history, and handling deletion requests.
What you can do after
Evaluate/understand a Session Service contract for creating, listing, populating, retrieving, and deleting conversation sessions.

Read how Designing AI Systems explains session management →

Also covered in

What to know first

Related concepts

Questions about session management

What is session management?

Session management is the maintenance of state that associates related requests or interactions with a continuing user, client, application, or agent session.

Which Manning books explain session management?

The Well-Grounded Python Developer: How the pros use Python and Flask and Designing AI Systems.

What should I know before learning session management?

Manning books that teach session management usually introduce trajectory first.

What is session management part of?

Session management is part of middleware. Middleware is software that mediates communication or processing between components, often by intercepting, transforming, or coordinating operations in a pipeline.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.