HTTP Cookies

HTTP cookies (RFC 6265, State Management): set and read cookies safely from a server with Set-Cookie and Cookie, choosing Expires, Max-Age, Domain, Path, Secure, HttpOnly and SameSite, the __Secure- and __Host- name prefixes, sizes and lifetimes. RFC 6265 is the current line; RFC 6265bis (draft-ietf-httpbis-rfc6265bis-22, in the RFC Editor queue) is a preview to build on now, because it defines SameSite=Strict/Lax/None, Lax-by-default, the prefixes, the 400-day lifetime cap and the 4096-octet limit. RFC 2965 and RFC 2109 (Set-Cookie2, Cookie2, $Version) are legacy. Use when designing session cookies, writing or reviewing Set-Cookie headers, parsing a Cookie header, deleting a cookie, scoping a cookie to a subdomain, debugging a cookie that is not sent or not stored, or hardening cookies against CSRF, session fixation, cookie tossing and subdomain attacks. Triggers: Set-Cookie, SameSite, cross-site cookie, third-party cookie, HttpOnly, Secure flag, __Host-, cookie prefix, cookie size limit, cookie expiry.

ScaleDockHQ Updated

File contents

ScaleDockHQ/scaledock-skills commit df502614b5

Frequently asked questions

npx get-skill add scaledockhq/http-cookies