private void SetCookie(string cookieString)
        {
            var cookie       = new Cookie();
            var regexMatches = new Regex(@"(?<name>.*?)=(?<ip>.*?); path=(?<path>.*?); expires=(?<expires>.*)")
                               .Matches(cookieString);

            foreach (Match regexMatch in regexMatches)
            {
                cookie.Name = regexMatch.Groups["name"].ToString();
                var ipMatch = Regex.Matches(regexMatch.Groups["ip"].ToString(), @"(?<ip>((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?))\.(?<timeStamp>\d*)");
                foreach (Match match in ipMatch)
                {
                    cookie.Domain = match.Groups["ip"].ToString();
                    var timeStamp = match.Groups["timeStamp"].ToString();
                    cookie.Expires = DateTimeExtensions.ConvertStringToDateTime(timeStamp).AddDays(30);
                }
                cookie.Path    = regexMatch.Groups["path"].ToString();
                cookie.Value   = regexMatch.Groups["ip"].ToString();
                cookie.Expired = true;
            }

            if (cookie.Name.IsNullOrEmpty())
            {
                regexMatches = new Regex(@"(?<name>.*?)=(?<value>.*?); [Pp]ath=(?<path>.*)")
                               .Matches(cookieString);
                foreach (Match regexMatch in regexMatches)
                {
                    cookie.Name  = regexMatch.Groups["name"].ToString();
                    cookie.Value = regexMatch.Groups["value"].ToString();
                    cookie.Path  = regexMatch.Groups["path"].ToString();
                }
            }

            var deleteCookie = this.Cookies.SingleOrDefault(m => m.Name == cookie.Name);

            if (deleteCookie != null)
            {
                this.Cookies.Remove(deleteCookie);
            }

            this.Cookies.Add(cookie);
        }