I am trying to determine if a session exists (or is blank) (to prevent people accessing a page without logging on to a previous page before)
I use this code:
If session("username"
OR session("password"
= "" then
response.write "You must log-in first."
else
username= session("username"
password= session("password"
end if
and it returns a type mismatch error.
What should the code be?
I use this code:
If session("username"


response.write "You must log-in first."
else
username= session("username"

password= session("password"

end if
and it returns a type mismatch error.
What should the code be?