Play doesn't support multiple values per header, so has to compress cookies into one header.
Play doesn't support multiple values per header, so has to compress cookies into one header. The problem is, Set-Cookie doesn't support being compressed into one header, the reason being that the separator character for header values, comma, is used in the dates in the Expires attribute of a cookie value. So we synthesise our own separator, that we use here, and before we send the cookie back to the client.
Decodes a Cookie header value as a proper cookie set.
Decodes a Cookie header value as a proper cookie set.
the Cookie header value
decoded cookies
Decodes a Set-Cookie header value as a proper cookie set.
Decodes a Set-Cookie header value as a proper cookie set.
the Set-Cookie header value
decoded cookies
Encodes cookies as a Set-Cookie HTTP header.
Encodes cookies as a Set-Cookie HTTP header.
the Cookies to encode
a valid Set-Cookie header value
Encodes cookies as a Set-Cookie HTTP header.
Encodes cookies as a Set-Cookie HTTP header.
the Cookies to encode
a valid Set-Cookie header value
Merges an existing Cookie header with new cookie values
Merges an existing Cookie header with new cookie values
the existing Cookie header value
the new cookies to encode
a valid Cookie header value
Merges an existing Set-Cookie header with new cookie values
Merges an existing Set-Cookie header with new cookie values
the existing Set-Cookie header value
the new cookies to encode
a valid Set-Cookie header value
(Since version 2.6.0) Inject play.api.mvc.CookieHeaderEncoding instead
Helper utilities to encode Cookies.