首页 > 解决方案 > 如果 Cookie 'Expires/Max-Age' 为 'N/A' 或未设置会发生什么

问题描述

我试图增加 cookie 到期时间并激活滑动到期。

但 cookie 到期仍然是“N/A”

它会导致什么问题,为什么没有显示到期。在这种情况下,cookie 会发生什么。什么时候到期。

在此处输入图像描述

标签: cookiesasp.net-identity

解决方案


It means the cookie will expire at the end of the session (when the browser closes, but not always).

When user privacy is a concern, It is important that any web app implementation will invalidate cookie data after a certain timeout and won't rely on the browser clearing session cookies.

One of the most beloved features of Firefox prevents session cookies from ever expiring. The same issue is also occuring with google chrome (and probably with other browsers offering similar features)


推荐阅读