add expire time for logging cookie