Prevent manually set cookie from clearing in Chrome Devtools

拈花ヽ惹草 提交于 2019-12-08 07:52:47

问题


Chrome Version 73.0.3683.75

I noticed recently that whenever I manually set a cookie in Chrome and I either navigate away or refresh the page, then the value I assigned to the cookie is cleared and no longer persists. For some reason, adding a new cookie manually automatically assigns N/A to its Expires / Max Age property, which didn't happen before. The cookie value would at least persist during the browser session.

I also see on the application panel that the row in which I add a cookie is highlighted red, but I have no indication as what is causing this. Any help is appreciated.


回答1:


Try filling Expires/ Max-Age field. Worked for me.



来源:https://stackoverflow.com/questions/55246320/prevent-manually-set-cookie-from-clearing-in-chrome-devtools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!