Set valid cookie expiry