'illustrate:
0. 'aspCookieAry,ASPCookie is an instance object of the class created during system initialization
1. 'In the program, only use the setCookies method when using cookies for the first time to set all common attributes of cookies at once.
2. 'The next time you use cookies, use the attribute value set for the first time. Only when the value of a certain attribute needs to be changed, set it separately.
3. 'Any attribute of the cookies built into ASP can be set or obtained using the ASPCookie object. This seems redundant. In fact, some error preprocessing will be added during implementation to make the program more robust.
4. '1 ASPCookie object can handle all cookies
5. 'ASPCookieAry has only one default attribute cookieItem
'Code use case
Write
ASPCookie("username") = "kiki"
read
testVar = ASPCookie("username")
set up
ASPCookie.SetCookies("name","outtime","domian","value")
Set a single property
ASPCookie.path = path
'==================COOKIE's array operations============================ =======
ASPCookieAry("user")("name") = "kiki"
ASPCookieAry("user")("age") = "23"
age = ASPCookieAry("user")("age")
ASPCookieAry("user").SetCookies("name","outtime","domian","value")
ASPCookieAry("user").path = path
'Also
'set AspCk= ASPCookieAry("user")
'AspCk("name") = "kiki"
'AspCk("age") = "23"
'age = AspCk("age")
'AspCk.SetCookies("name","outtime","domian","value")
'AspCk.path = path
'====================Use case, end============================ =====
Please tell me if this is reasonable? Thanks
-