Change the way the cookie is expired and validated