开发者

Can a cookie expire when EITHER some time passes OR browser is closed?

I know 开发者_运维知识库that I can set expiration date for a cookie, but can I make a cookie expire after some time OR when browser is closed?


If you set an expiration date, this will set them to expire on that date, whether the browser is open or closed.

Only non persisted cookies will expire once the browser is closed.

See cookie expiration rules on wikipedia.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜