3.7 Cookie Object

Contains cookie values corresponding to the Request object received from the browser or the Response object sent to the browser.

Properties that are applicable only for the Response objects are:

3.7.1 Domain property

Sets or returns the domain to which the cookie sends the response.

Syntax

Object.Domain = DomainName As String

Type

String.

DomainName is an optional parameter that sets the name of the domain.

Attributes

Read/write.

Remarks

This property is applicable only for Response objects.

3.7.2 Expires property

Sets or returns the expiry date the cookie expires.

Syntax

object.Expires = DateValue As Date

Type

Date.

DateValue is an optional parameter that sets the expiry date of the cookie.

Attributes

Read/write.

Remarks

This property is applicable only for the Response objects.

3.7.3 Name property

Sets or returns the name of the Cookie object.

Syntax

Object.Name = NameValue As String

Type

String.

NameValue is an optional parameter that sets the name of the cookie object.

Attributes

Read/write.

3.7.4 Path property

Sets or returns the path through which the cookie sends the response to the domain.

Syntax

Object.Path [PathName As String]

Type

String.

Attributes

Read/write.

Remarks

This property is a Response object only.

3.7.5 Secure property

Specifies whether the Cookie object is secure.

Syntax

object.Secure = SecureState As String

Type

Boolean. Returns TRUE if the specified Cookie object is secure else returns FALSE.

Attributes

Read.

Remarks

SecureState Sets the cookie to be secured or insecure. By default this property is set to FALSE.

3.7.6 Value property

Sets or returns the value of a Cookie object.

Syntax

object.Value = CookieValue As String

Type

String.

Attributes

Read/write.

Remarks

CookieValue is an optional parameter that specifies the value to assign to the Cookie object.