HttpCookieCollection

Wisej.Core.HttpCookieCollection

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.1.0.0)

Encapsulates the cookies sent in an HTTP request.

public class HttpCookieCollection

Properties

AllKeys

String[]: Returns all the keys (cookie names) in the cookie collection.

Count

Int32: Returns the number of cookies in the collection.

Item(name)

HttpCookie: Returns the cookie with the specified name from the cookie collection.

Item(index)

HttpCookie: Returns the cookie with the specified numerical index from the cookie collection.

Methods

Adds the specified cookie to the cookie collection.

Parameter
Type
Description

Clear()

Clears all cookies from the cookie collection.

Get(name)

Returns the cookie with the specified name from the cookie collection.

Parameter
Type
Description

name

Name of the cookie to retrieve.

Returns: HttpCookie.

Get(index)

Returns the HttpCookie at the specified index.

Parameter
Type
Description

index

Index of the cookie to retrieve.

Returns: HttpCookie.

GetKey(index)

Returns the key (name) of the cookie at the specified numerical index.

Parameter
Type
Description

index

Returns: String.

Remove(name)

Removes the cookie with the specified name from the collection.

Parameter
Type
Description

name

Updates the value of an existing cookie in a cookie collection.

Parameter
Type
Description

Last updated

Was this helpful?