38

If I open the inspector for a page, go to the Application tab, scroll down to Cookies in the left-hand list, expand it, and click my domain, I get a list of cookies set on the domain. I can add new entries to the list and edit existing ones, setting and updating cookies stored for that domain.

After upgrading to Chrome 73 if I try and set a cookie the browser colors the text red and does not set or save the cookie. How do I continue setting cookies in Chrome 73?

2 Answers 2

30

Solved it by

  1. search in chrome settings for flags by entering in the url field chrome://flags
  2. search Partitioned cookies and set it to enable
  3. Restart chrome (might need to refresh the page after the restart and it works like before did)
4
  • 8
    Looks like a bug in the new version of Chrome
    – CoperNick
    Feb 17, 2022 at 16:00
  • 2
    What is this actually doing?
    – Tallboy
    Feb 18, 2022 at 19:33
  • 5
    Chrome bug (per @CoperNick) workaround is to set the cookie in the console. document.cookie = "mycookie=myvalue";
    – Ponyboy
    Feb 18, 2022 at 20:01
  • @Tallboy it enables usage of Partitioned cookies :D More on partitioned cookies chromestatus.com/feature/5179189105786880 Feb 20, 2022 at 21:19
28

In Chrome 73 and later cookies must have a value for the Expires/Max-Age column or they will not be set. Double-click that field and enter 2100 to set a Expires time of 2100-01-01T00:00:00.000Z for your cookie.

2
  • 1
    What value would you put to create a session cookie?
    – checketts
    Apr 24, 2019 at 17:12
  • 3
    Type in the literal string Session into the Expires/Max-Age column. The box will say N/A but it'll save the cookie instead of coloring the row red.
    – ldrg
    Apr 25, 2019 at 17:24

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.