创建cookie时,如何获取cookie的过期时间?
When I create a cookie, how to get cookie's expire time?
这很难实现,但是可以在另一个 cookie 中设置 cookie 的过期日期.然后可以稍后读取此 cookie 以获取到期日期.也许有更好的方法,但这是解决您问题的方法之一.
This is difficult to achieve, but the cookie expiration date can be set in another cookie. This cookie can then be read later to get the expiration date. Maybe there is a better way, but this is one of the methods to solve your problem.
这篇关于如何获取cookie的过期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!