Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update EXPIRES info with clock skew #37745

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading