Beispiel #1
0
 /// <summary>
 /// Copy a request cookie
 /// </summary>
 /// <param name="cookie"></param>
 /// <param name="expires">When the cookie should expire</param>
 public void Add(RequestCookie cookie, DateTime expires)
 {
     Add(new ResponseCookie(cookie, expires));
 }
Beispiel #2
0
 /// <summary>
 /// Create a new cookie
 /// </summary>
 /// <param name="cookie">Name and value will be used</param>
 /// <param name="expires">when the cookie expires.</param>
 public ResponseCookie(RequestCookie cookie, DateTime expires)
     : this(cookie.Name, cookie.Value, expires)
 {
 }