logout user when the cookie has expired