如何获取cookie的过期时间
创建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.
相关文章