1

In Android, is there a way we can check if a cookie used by webkit has expired? CookieManager.getCookie(url) doesn't have the expiry dates.

BartoszKP
  • 34,786
  • 15
  • 102
  • 130
Green Ho
  • 881
  • 3
  • 14
  • 27

1 Answers1

-1

Well you have to retrieve the cookie first to a Cookie ( org.apache.http.cookie.Cookie) object and then use the "

isExpired(Date date)

" that returns true if this cookie has expired.

you can also test the date by using

getExpiryDate()

.

lastjeef
  • 166
  • 2
  • 11