W
Wally
I have a record set (rs) that contains 25 barcodes values that I set to true
in a cookie. (see code section below)
If I read the cookie from within the same page that created it, I see all
25 values. But if I redirect to another page and read the cookie only 18 of
the values remain.
Even though I load the same 25 barcodes at login, the 18 that remain can
differ each time.
If anyone can help figure out why I am missing data in the cookie, I would
appreciated it. The cookie size is only 2k.
Here is the section of code i am using to create the cookie. Hopefully, I
did not make any typos when I retyped it.
while not rs.eof
response.cookies(cstr(rs("code"))) = "true"
response.cookies(cstr(rs("code"))).expires = dateadd("d",1,date)
rs movenext
wend
Here is the section of code i am using to view the cookie.
for each cookie in Request.cookies
if not request.cookies(cookie).haskeys then
response.write "<br>"
response.write cookie + " = " + request.cookies(cookie)
else
for each key in request.cookies(cookie)
response.write "<br>"
response.write cookie + "( "+ key + ") = " +
request.cookies(cookie)(key)
next
end if
next
in a cookie. (see code section below)
If I read the cookie from within the same page that created it, I see all
25 values. But if I redirect to another page and read the cookie only 18 of
the values remain.
Even though I load the same 25 barcodes at login, the 18 that remain can
differ each time.
If anyone can help figure out why I am missing data in the cookie, I would
appreciated it. The cookie size is only 2k.
Here is the section of code i am using to create the cookie. Hopefully, I
did not make any typos when I retyped it.
while not rs.eof
response.cookies(cstr(rs("code"))) = "true"
response.cookies(cstr(rs("code"))).expires = dateadd("d",1,date)
rs movenext
wend
Here is the section of code i am using to view the cookie.
for each cookie in Request.cookies
if not request.cookies(cookie).haskeys then
response.write "<br>"
response.write cookie + " = " + request.cookies(cookie)
else
for each key in request.cookies(cookie)
response.write "<br>"
response.write cookie + "( "+ key + ") = " +
request.cookies(cookie)(key)
next
end if
next