How to test cookie enabled ?

wxdqz

New Member
Hi All,

I would like to test whether client browser is cookie enabled or not using ASP. I know I can do that using two ASP page. But I want to know can I do that using one ASP page.. something like this, is this the right way ?

sServerVariables = Request.ServerVariables ("HTTP_COOKIE")
if ( isNull(sServerVariables) or sServerVariables = "") then
Response.write("Cookie Disabled")
else
Response.write("Cookie enabled")
end if
 
Back
Top