Class CookieSessionMetadata

java.lang.Object
google.registry.flows.SessionMetadata
google.registry.flows.CookieSessionMetadata

public class CookieSessionMetadata extends SessionMetadata
A metadata class that saves the data directly in cookies.

Unlike HttpSessionMetadata, this class does not rely on a session manager to translate an opaque session cookie into the metadata. This means that the locality of the session manager is irrelevant and as long as the client (the proxy) respects the Set-Cookie headers and sets the respective cookies in subsequent requests in a session, the metadata will be available to all servers, not just the one that created the session.

The string representation of the metadata is saved in Base64 URL-safe format in a cookie named SESSION_INFO.