webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

"Expires" missing from "Table for cookie conversion"

Open miketaylr opened this issue 3 years ago • 1 comments

https://w3c.github.io/webdriver/#dfn-table-for-cookie-conversion is missing https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.1 - is that intentional?

miketaylr avatar Mar 16 '22 20:03 miketaylr

This is very likely the explanation: https://mrcoles.com/blog/cookies-max-age-vs-expires/

To add on that: the browser's Cookie Storage model will keep only the expiry-time attribute, set to the moment the cookie should expire (see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#name-storage-model).

RFC6265 defines expires as a date (seconds since epoch) and max-age as a relative delta (in seconds) leaving the actual expiry-time value to be calculated by the user agent. From a webdriver use case, though, it makes sense to set the expiry-time directly.

barraponto avatar Oct 20 '23 14:10 barraponto