[Javascript] Re: Detect Cookies? (Slightly OT now)

Phil Winstanley p_winstanley at creations.co.uk
Fri Aug 17 10:43:36 CDT 2001


Only if the browser is listed in the browser.ini file on the server.

Much better method is to try and set one and then read back the value.

-----Original Message-----
From: queequeg_x at yahoo.com [mailto:queequeg_x at yahoo.com] 
Sent: Friday, August 17, 2001 4:37 PM
To: javascript at LaTech.edu
Subject: [Javascript] Re: Detect Cookies? (Slightly OT now)

Thanks so much for all the responses! Incidentally, I found this 
script on another list. Is this a valid script to use to detect and 
then redirect? Many thanks in advance!

-rene
-------------------------
%@LANGUAGE="vbscript"%>
<% response.buffer="true" %>
<html><head>
<%
Set browser = Server.CreateObject("MSWC.BrowserType")
%>
<%
if browser.cookies = false then 
response.redirect "nocookies.asp"
else
response.redirect "region.asp"
end if
%>
</head><body></body>
</html>


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010817/3b8fd7e3/attachment.htm>


More information about the Javascript mailing list