Click to See Complete Forum and Search --> : How to test cookie enabled ?


raghu
03-31-2003, 08:52 PM
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