Jul 16, 2004 #1 melnet Programmer Jul 8, 2003 77 HK hi Response.Cookies(CName)(CKey) = CValue what meaning?? i just understand Response.Cookies(CName) = CValue but now has two (CName)(Ckey) thnaks
hi Response.Cookies(CName)(CKey) = CValue what meaning?? i just understand Response.Cookies(CName) = CValue but now has two (CName)(Ckey) thnaks
Jul 16, 2004 #2 storm1976 Programmer Jul 6, 2001 31 GB Hi there melnet, Response.Cookies(CName)(CKey) = CValue means you can have many values in the same cookie Response.Cookies("yourcookie")("value1") = "value 1" Response.Cookies("yourcookie")("value2") = "value 2" so here the CName is "yourcookie" the CKey is "value1" and "value2" and the values are there for you. to find out if your cookie has any keys at all: <%=Response.Cookies("yourcookie").HasKeys%> This will return either true or false. Hope this is ok for you. Upvote 0 Downvote
Hi there melnet, Response.Cookies(CName)(CKey) = CValue means you can have many values in the same cookie Response.Cookies("yourcookie")("value1") = "value 1" Response.Cookies("yourcookie")("value2") = "value 2" so here the CName is "yourcookie" the CKey is "value1" and "value2" and the values are there for you. to find out if your cookie has any keys at all: <%=Response.Cookies("yourcookie").HasKeys%> This will return either true or false. Hope this is ok for you.
Jul 16, 2004 Thread starter #3 melnet Programmer Jul 8, 2003 77 HK in your case, Response.Cookies("yourcookie")("value1") = "value 1" "yourcookie" and "value1" have "value1", right!? thanks Upvote 0 Downvote
in your case, Response.Cookies("yourcookie")("value1") = "value 1" "yourcookie" and "value1" have "value1", right!? thanks
Jul 16, 2004 Thread starter #4 melnet Programmer Jul 8, 2003 77 HK Response.Cookies("yourcookie")("value1") = "value 1" Response.Cookies("yourcookie")("value2") = "value 2" hum... let me explain first. ~.~; yourcookie has a key called value1. yourcookie have no any value, if i wanna get value 1, i code Request.Cookies(x), right? it's look like yourcookie.value1="value 1"?!! thanks Upvote 0 Downvote
Response.Cookies("yourcookie")("value1") = "value 1" Response.Cookies("yourcookie")("value2") = "value 2" hum... let me explain first. ~.~; yourcookie has a key called value1. yourcookie have no any value, if i wanna get value 1, i code Request.Cookies(x), right? it's look like yourcookie.value1="value 1"?!! thanks
Jul 16, 2004 #5 storm1976 Programmer Jul 6, 2001 31 GB to get value one you use <%=request.cookies("yourcookie")("value1")%> response.cookies sets the cookie request.cookies gets the value from the cookie. so yeh ) Upvote 0 Downvote
to get value one you use <%=request.cookies("yourcookie")("value1")%> response.cookies sets the cookie request.cookies gets the value from the cookie. so yeh )
Jul 16, 2004 Thread starter #6 melnet Programmer Jul 8, 2003 77 HK sorry.. i took a test... http://hk.geocities.com/colokit/test.htm <<<it didn't work C:\Inetpub\http://wwwroot\watch\test.htmbut if i took a test in local computer. it worked.. dont know why...... ~.~; thanks Upvote 0 Downvote
sorry.. i took a test... http://hk.geocities.com/colokit/test.htm <<<it didn't work C:\Inetpub\http://wwwroot\watch\test.htmbut if i took a test in local computer. it worked.. dont know why...... ~.~; thanks
Jul 16, 2004 Thread starter #7 melnet Programmer Jul 8, 2003 77 HK post wrong .... sorry...... Upvote 0 Downvote
Jul 16, 2004 Thread starter #8 melnet Programmer Jul 8, 2003 77 HK i understand how to use response.cookies and equest.cookies. but i stil dont understand sth... for example CName=john CValue=10 1.Response.Cookies(CName) = CValue 2.Response.Cookies(CName)(CKey) = CValue in case 1., CName is equal to john or 10? in case 2., what value of CName and Ckey!? are CName and CKey 10? or CName=john, Cvalue=10????? or CName is empty and CKey is 10??? thanks.... Upvote 0 Downvote
i understand how to use response.cookies and equest.cookies. but i stil dont understand sth... for example CName=john CValue=10 1.Response.Cookies(CName) = CValue 2.Response.Cookies(CName)(CKey) = CValue in case 1., CName is equal to john or 10? in case 2., what value of CName and Ckey!? are CName and CKey 10? or CName=john, Cvalue=10????? or CName is empty and CKey is 10??? thanks....