You can check that in client side using JavaScript
<script language="JavaScript">
<!--
// cookies is enabled
if ( navigator.cookieEnabled )
{
}
// cookies is not enabled
else
{
}
//-->
</script>
Another good reference is here
http://www.cyscape.com/sho
hongjun
Main Topics
Browse All Topics





by: hongjunPosted on 2003-06-14 at 04:52:53ID: 8723404
Try this simple example
<%
session("Name") = "Hello"
session("Password") = "world"
dim blnExist
blnExist = CheckSession("Name")
if blnExist then
Response.Write "Exist"
else
Response.Write "Not Exist"
end if
function CheckSession(strToCheck)
dim strName
CheckSession = false
for each strName in Session.Contents
if UCase(strName) = UCase(strToCheck) then
CheckSession = true
exit for
end if
next
end function
%>
hongjun