Skip to content

Commit

Permalink
Update EXPIRES info with clock skew
Browse files Browse the repository at this point in the history
Firefox and Chromium adjust the EXPIRES value with the computed clock-skew as calculated using the response's DATE header.
  • Loading branch information
ericlaw1979 authored Jan 21, 2025
1 parent 716e136 commit ffa14b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/en-us/web/http/headers/set-cookie/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ Set-Cookie: <cookie-name>=<cookie-value>; Domain=<domain-value>; Secure; HttpOnl
> [!WARNING]
> Many web browsers have a _session restore_ feature that will save all tabs and restore them the next time the browser is used. Session cookies will also be restored, as if the browser was never closed.
When an `Expires` date is set, the deadline is relative to the _client_ the cookie is being set on, not the server.
When an `Expires` date is set, the deadline is relative to the _client_ the cookie is being set on, not the server. However, the server's `Date` header will be used to compute the clock skew between the
client and the server, and the `Expires` date will be adjusted accordingly.

- `HttpOnly` {{optional_inline}}

Expand Down

0 comments on commit ffa14b0

Please sign in to comment.