public class CookieHelper
    {
        /// 
        /// 获取简化COOKIE 删除 setCookie中的 expires=|max-ag=|path=|domain=|HttpOnly
        /// 
        /// 
        /// 
		public static string GetSmallCookie(IEnumerable cookies)
        {
            string[] strs;
            StringBuilder sb = new StringBuilder(128);
            HashSet hash = new HashSet();
            foreach (var item in cookies)
            {
                strs = item.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
                foreach (var sub in strs)
                {
                    if (!Regex.IsMatch(sub, "expires=|max-ag=|path=|domain=|HttpOnly", RegexOptions.IgnoreCase)) hash.Add(sub.Trim());
                }

            }
            return string.Join("; ", hash);
        }