
HttpCookieCollection | 495
System.Web
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Returned By
HttpCookieCollection.{Get( ), this}, System.Web.Security.FormsAuthentication.
GetAuthCookie( )
Passed To
HttpCookieCollection.{Add( ), Set( )}, HttpResponse.{AppendCookie( ), SetCookie( )}
HttpCookieCollection
System.Web (system.web.dll)
sealed class
HttpCookieCollection is a name/value collection of HttpCookie objects. The Cookies property of
the HttpResponse class contains the cookies sent from the client with the current request.
The Cookies property of the HttpRequest class contains the cookies sent back from the
server.
These collections contain all the transmitted cookies, including those you have created
automatically in code, and other cookies used by the ASP.NET framework like the
Forms Authentication cookie and the Session state cookie (named ASP.NET_SessionId).
Hierarchy
System.Object ➝ System.Collections.Specialized.NameObjectCollectionBase(System.Collec-
tions.ICollection, System.Collections.IEnumerable, System.Runtime.Serialization.ISerializable,
System.Runtime.Serialization.IDeserializationCallback)
➝ HttpCookieCollection
Returned By
HttpRequest.Cookies, HttpResponse.Cookies
// Public Instance Properties
public string Domain{set; get; }
public DateTime Expires{set; get; }
public bool HasKeys{get; }
public string Name ...