State management

Overcomes HTTP limitations

Allows Web clients and servers to maintain a relationship between requests

The period during which this relationship holds is called a session

Most Web applications that require you to log in use sessions and state management

E.g. Shopping cart applications use state management to hold a list of all items marked for purchase

Cookies are a component of state management.

Cookies are small pieces of text stored by the server on the local machine and sent with every request to that same server

The IETF RFC 2965 HTTP State Management Mechanism is the current cookie specification.

Reference: a recipe for