public void remove ( Cookie cookie ) { cookie . getHttpCookie ( ) . setExpiryDate ( new Date ( 0 ) ) ; cookieRepresentationCache . remove ( cookie . getHttpCookie ( ) ) ; getStore ( ) . clearExpired ( new Date ( 1 ) ) ; }
Removes the current cookie by changing the expired date and force the store to remove all expired for a given date . The date will be set to a time of 1970 .