reset the cookie jar correctly.