Stores all data in the Session and returns the Set-Cookie header to be used in the HTTP response.
Deletes all data associated with the Session and returns the Set-Cookie header to be used in the HTTP response.
Parses a Cookie header from a HTTP request and returns the associated Session. If there is no session associated with the cookie, this will return a new Session with no data.
SessionStorage stores session data between HTTP requests and knows how to parse and create cookies.
A SessionStorage creates Session objects using a
Cookie
header as input. Then, later it generates theSet-Cookie
header to be used in the response.