Article · web / cookies / javascript
What should you review in cookie changes before deployment?
Compare two redacted Set-Cookie headers locally with Cookie Delta; separate attribute differences, application testing and security claims.
You have updated a client’s website. Pages open and forms work, yet sign-in behaves differently after deployment. A small Set-Cookie change can be a useful starting point. First identify the changed attributes, then investigate their effect on the application’s intended flows. A textual difference alone does not establish a security problem.
Cookie Delta is a small TR/EN tool for that first comparison. It accepts one previous and one new Set-Cookie header and shows attribute changes, contextual review notes and an initially unchecked application test list. It is not a security scanner. It does not read live cookies, contact a target website, score results or make automatic corrections.
Remove the real value first
Open the tool or download the local package. Extract the ZIP and open index.html in a browser; no installation or server is needed. Source, tests and usage instructions are included in the ZIP package.
Before pasting, replace the cookie value in your own environment with the exact word REDACTED. Other, empty or quoted values are rejected; the tool does not redact for you. Names, Domain and other attributes can also be sensitive. Use synthetic or anonymized metadata and review reports before sharing. Input remains in this open page’s memory and is not sent to the network, storage, logs or analytics. There is no tracker on the tool page.
Synthetic previous header:
Set-Cookie: session=REDACTED; Secure; HttpOnly; SameSite=Lax; Path=/Synthetic new header:
Set-Cookie: session=REDACTED; HttpOnly; SameSite=None; Path=/accountShow changes identifies path, samesite and secure. The new header lacks Secure, which is required with SameSite=None according to MDN’s Set-Cookie reference. This is an observation about documented attribute requirements. It is not a live browser result, an observation of a user’s session or proof of a vulnerability.
Separate formatting from behaviour
Attribute order and name casing normalize. So do SameSite and Domain casing, the leading Domain dot, supported Expires formatting and Max-Age integer formatting. Cookie name and Path case stay significant. Session and session, or /Account and /account, are not silently equated. A renamed cookie is not assumed to update the same cookie.
Omitted SameSite is distinct from explicit Lax. Some browsers apply defaults, with possible exceptions for default Lax; test the actual flow in target browsers. Unknown attributes remain visible. All repeated attribute values preserve their order; the tool does not select a final value and predict the browser’s interpretation.
Keep the rules in context
Secure concerns transport context and HttpOnly concerns JavaScript access; neither alone makes a website secure. An HttpOnly cookie can still accompany requests initiated by JavaScript. SameSite=None and Partitioned require Secure. CHIPS support and application cross-site requirements need separate testing.
MDN documents four prefixes: __Secure-, __Host-, __Http- and __Host-Http-. Supporting browsers require a secure HTTPS origin and Secure. The __Host- family also requires an explicit Path=/ and forbids Domain. __Http- and __Host-Http- additionally require HttpOnly. Header text cannot establish the HTTPS origin or browser prefix support. Canonical server spelling differs from user-agent matching. Archived 6265bis-22 Internet-Draft §4.1.3/§5.4 specifies case-insensitive UA matching for the __Secure- and __Host- families. The tool conditionally flags noncanonical variants, preserves the name and does not extend that draft rule to __Http-. This archived work-in-progress is not a final RFC. Sources were checked on 7 November 2026.
Domain, Path and lifetime changes receive no safe/unsafe verdict. Path is not a security boundary. Test actual hosts, subdomains and request paths. If valid Max-Age and Expires are both present, Max-Age takes precedence. Session end, deletion and browser session restoration are separate test cases.
Test the application after reading the report
The checklist is a reminder for your tests, not an automated pass result. Exercise login, logout and session renewal; cross-site sign-in or payment when relevant; scope and lifetime; and SameSite, Partitioned and prefix behaviour in target browsers. Checks last only in this open page and reset on a new comparison or language change. The text report can be selected or copied explicitly to the system clipboard.
Each input is limited to one ASCII line, 8192 characters and 64 attributes. A valid Expires comma is retained; combined or ambiguous headers are rejected. Expires accepts only IMF-fixdate/GMT with a matching weekday. Quoted attributes, other date forms, Max-Age beyond 18 digits and an explicit Path not starting with / are rejected in this version. ASCII Domain checks do not validate DNS or public suffixes. README and the tool explain these limits.
QA.md in the package records the actual environment, synthetic tests, local browser checks and untested platforms. No passing results are claimed for untested browsers or operating systems. Existing comparators such as ToolSorcerer also exist; Cookie Delta makes no originality or vulnerability discovery claim. Its purpose is to make a small pre-deployment change visible and guide the next application test.