if server returns a 401 status code in response to an ajax call, delete the cookie which client uses to know user is logged in