我想清除2个cookie 用的是res.clearCookie 发现 这个res.clearCookie(“connect.sid”,{path: ‘/’}); 清除不了 这是为啥 connect.sid应该是跟session相关的吧
发现删除不掉的那2个都是http only的
驱蚊器<br/><br/><a class=“form” href=“https://github.com/shinygang/Vue-cnodejs”>I‘m webapp-cnodejs-vue</a>
原来把 maxAge 设置成0就行了 唉唉哎唉唉
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
发现删除不掉的那2个都是http only的
驱蚊器<br/><br/><a class=“form” href=“https://github.com/shinygang/Vue-cnodejs”>I‘m webapp-cnodejs-vue</a>
原来把 maxAge 设置成0就行了 唉唉哎唉唉