cookies - 如果 Cookie 'Expires/Max-Age' 是 'N/A' 或未设置会发生什么

标签 cookies asp.net-identity

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

但是 cookie 的过期时间仍然是“N/A”

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

enter image description here

最佳答案

这意味着 cookie 将在 session 结束时过期(当浏览器关闭时,但并非总是如此)。

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)

关于cookies - 如果 Cookie 'Expires/Max-Age' 是 'N/A' 或未设置会发生什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55755511/

相关文章:

C# 从数据 POST 上提供的服务器响应中获取 Cookie

cookies - mediawiki cookie 的问题

javascript - 将哈希值放入 javascript cookie

ASP.NET 身份管理器错误 : error when trying to create a controller of type 'MetaController' (no parameterless public constructor)

entity-framework - 当我在数据库初始化程序 Seed() 中处理 UserManager/RoleManager 时,为什么我的 ApplicationDbContext 会被处理?

javascript - 从 Internet Explorer 读取 Cookie

google-chrome - iframe 中 SameSite=Lax cookie 和 GET 请求的规则是什么?

c# - Asp.Net core 2 往返外部登录附加参数

angularjs - ASP.NET Core API - 登录和防伪 token

asp.net - SignalR ASP.NET MVC5 标识