Refactored HttpCookie to improve code quality