开发者

Cookies lifetime and turning off PC

When a PC is turned off, are all of the cookies destroyed or kept? In particular, this开发者_JS百科 is with an ASP.NET/Sharepoint app.

Thanks


Cookies can persist past the uptime of the PC. They're stored on disk according to the expiration time set by the website and optionally overridden by the browser.


Generally speaking no. Cookies are kept until they expire (you can set the expiration date for an ASP.NET cookie by using the HttpCookie.Expires property).

But a user might have there browser setup to delete any cookies when they close the browser. So you can't really rely on cookies being deleted or not from a client's machine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜