Skip to main content
Version: 3.5

HttpCookieCollection

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Encapsulates the cookies sent in an HTTP request.

public class HttpCookieCollection

Properties

Instance memberAllKeys

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

Instance memberCount

Int32: Returns the number of cookies in the collection.

Instance memberItem(name)

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

Instance memberItem(index)

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

Methods

Adds the specified cookie to the cookie collection.

ParameterTypeDescription
cookieHttpCookie

Instance memberClear()

Clears all cookies from the cookie collection.

Instance memberGet(name)

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

ParameterTypeDescription
nameStringName of the cookie to retrieve.

Returns: HttpCookie.

Instance memberGet(index)

Returns the HttpCookie at the specified index.

ParameterTypeDescription
indexInt32Index of the cookie to retrieve.

Returns: HttpCookie.

Instance memberGetKey(index)

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

ParameterTypeDescription
indexInt32

Returns: String.

Instance memberRemove(name)

Removes the cookie with the specified name from the collection.

ParameterTypeDescription
nameString

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

ParameterTypeDescription
cookieHttpCookie