Set an expiration time for the cookie