what date formats can be specified in the expires = <DATE> field of the set-Cookie header? RRS feed

  • Question

  • I'm using internet explorer 11 with windows 10.

    As a way to expire cookies, I have set the 'expires=<DATE>' to a point in the past.

    When I tested

    The following formats are not supported. (Cookie was not removed.)

    Set-Cookie: expires=Wed, 01-Jan-70 00:00:00 GMT

    However, the following formats are supported. (Cookie was removed.)

    Set-Cookie: expires=Wed, 01 Jan 1970 00:00:00 GMT

    I confirmed that the former was rfc850 and the latter was rfc1123.

    I wonder if there is an official document or reference for this result.

    • Edited by jhseo-dev Friday, March 15, 2019 1:05 AM
    Wednesday, March 6, 2019 5:18 AM