theocraticmind
Programmer
ok based on the tut on asp cookies at w3schools.com i came to the conclusion that in the following code, if the cookie was not already on the users machine, this would/should do fine. but this dosen't seem to be the case, seeing how i always get an "Element not found" error.
dim username
dim password
username = Request.Cookies("username"
'line that gives the error
password = Request.Cookies("password"
if username <> "" and password <> "" then
session("name"
= username
session("password"
= password
else
session("name"
= ""
session("password"
= ""
end if
anyway, how do i test for the cookie before i atempt to call it, so that i don't get this error?
dim username
dim password
username = Request.Cookies("username"
password = Request.Cookies("password"
if username <> "" and password <> "" then
session("name"
session("password"
else
session("name"
session("password"
end if
anyway, how do i test for the cookie before i atempt to call it, so that i don't get this error?