Automatically set the expiration date of cookies to 1 year