Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Syntax: ASP Response Object Cookies Collection

Response.Cookies(cookie)[(key)| .attribute] = value
Parameters: ASP Response Object Cookies Collection

cookie

The name of the cookie.

key

Optional. If key is specified, the cookie is a dictionary and key is set to value.

attribute

Specific information about the cookie itself. This can be one of the attributes listed in the following table.

Attribute
Description
Expires
The date on which the cookie expires. This attribute must be set to a date later than the current date to store the cookie on the client disk after the current session ends. Write-only.
HasKeys
Indicates that the cookie has keys. Read-only.
Path
If set, the cookie is only sent to requests on this path. If the attribute is not set, the application path is used. Write-only.
Secure
Indicates that the cookie is secure. Write-only.

value

Specifies the value to assign to key or attribute.



ContentsPreviousNextIndex