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