v1.0, v1.1: Improvement to cookie handling to properly overwrite an expired local cookie.