Cookie過期了。這個(gè)對(duì)象還在堆中么?還是就刪除了
比如創(chuàng)建一個(gè)Cookie生命周期是0秒,我把他存在 response.addCookie中,然后我在獲取request.getCookies()。我能獲取到這個(gè)0秒周期的Cookie對(duì)象么,我知道他失效了,但是我能獲取到么,比如我 cookie.name();我能獲取到值么
比如創(chuàng)建一個(gè)Cookie生命周期是0秒,我把他存在 response.addCookie中,然后我在獲取request.getCookies()。我能獲取到這個(gè)0秒周期的Cookie對(duì)象么,我知道他失效了,但是我能獲取到么,比如我 cookie.name();我能獲取到值么
2019-07-05
舉報(bào)
2019-07-16
不可以
2019-07-06
這個(gè)是不能的