I’m pleased to announce the serversession family of packages.
HTTP is a stateless protocol. Cookies are used to create sessions out of otherwise independent requests made by the browser to the server. There are many ways of managing sessions via cookies, but they can be mostly separated into two big camps:
- Client-side sessions
- The cookie data contains the session data. For example, it could contain a shopper’s login and cart contents.
- Server-side sessions
- The cookie data contains a session identifier, and the session data is kept on a database indexed by the session identifiers.