Mono Class Library: System.Web Namespace

System.Web.HttpCookie Class

Represents an HTTP Cookie.

See Also: HttpCookie Members

public sealed class HttpCookie

Remarks

You can use cookies to store information on the client browser that will be provided in subsequent calls to the site. This can be useful to pass information across pages, or to store small bits of information that might be useful at a later time in the use of the web application

You could use it for example to store a transient user preference ("favorite color", "default action when replying to an email" and so on).

Once constructed, the cookie can be send to the client by calling the HttpResponse.AppendCookie() method. This must be done before any input is sent back to the client.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0