读取cookie过期日期 [英] Reading cookie expiration date
本文介绍了读取cookie过期日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用 JavaScript 读取 cookie 到期日期?
Is it possible to read cookie expiration date using JavaScript?
如果是,如何?如果没有,是否有我可以查看的来源?
If yes, how? If not, is there a source I can look at?
推荐答案
无法通过Javascript获取cookie的过期日期;仅通过 document.cookie
公开键值对.
It is not possible to get the expiration date of a cookie through Javascript; only key-value pairs are exposed through document.cookie
.
这篇关于读取cookie过期日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文