Response.Cookies ("111cnNet"). Domain = "www.xxx.com" specifies www.xxx.com access
Response.Cookies ("111cnNet"). Path = "E-blog" specifies e-blog Directory Access
Response.Cookies ("111cnNet"). Expires= DateAdd ("D", 2,date) ' specifies two days after expiration
Response.Cookies ("111cnNet") ("name") = "test"
Response.Cookies ("111cnNet ") (" type ") =" hehe "
[HTML]
The above two sentences are made of a dictionary-like cookie.
about the use of HasKeys, very simple, request. Cookies (cookies). HasKeys can be, for example, to determine whether a cookie is a dictionary, you can write
[code]
<%
If Request.Cookies ("111cnNet"). HasKeys Then
Response.Write "This is a dictionary cookie"
Else
Response.Write "This is not a dictionary cookie"
End If
%>
Response.Cookies (Cookiesname) [(Key) |. Attribute]=value
The explanation is as follows: Cookiesname is the name of the cookie you want, for example: test
Parameter key: Optional parameter, of course, not specified also can be. :)
Key is used to specify the name of the cookie for the dictionary cookie. My understanding seems to resemble an array.
Parameter attribute optional, specify the cookie itself related information, such as specifying a specific URL, path, expiration, and so on.
The optional values are: domain can only read cookies for a specific domain name
Expiration of Expires Cookies
Whether HasKeys contains child cookies
Path can only read cookies on the specified path
SECURE Specifies whether the cookie is encrypted
For example, to specify a cookie named 111cnNet on this web site, the following methods are: