Example #1
0
 public void SetEncryptedCookie(string name, object value)
 {
     if (value != null)
     {
         HttpCookie cookie = new HttpCookie(name, CryptographyUtility.EncryptString(value));
         cookie.Path = "/";
         ResponseCookies.Add(cookie);
     }
 }