Пример #1
0
 public void SetWBCookie(WebBrowser wb, string name, string value, DateTime expireTime)
 {
     value = DESEncrypt.Encrypt(value) + ";expires=" + expireTime.ToString("M");
     wb.Document.Cookie += ";" + name + "=" + value;
 }
Пример #2
0
 public void DeleteCookie(string name, string value)
 {
     value = DESEncrypt.Encrypt(value) + ";expires=" + DateTime.Now.AddSeconds(10).ToString("M");
     InternetSetCookie(navigateUrl, DESEncrypt.Encrypt(name), value);
 }
Пример #3
0
 public void SetCookie(string name, string value, DateTime expireTime)
 {
     value = DESEncrypt.Encrypt(value) + ";expires=" + expireTime.ToString("M");
     InternetSetCookie(navigateUrl, DESEncrypt.Encrypt(name), value);
 }