<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Javascript] Re: Detect Cookies? (Slightly OT now)</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>Only if the browser is listed in the browser.ini file on the server.</FONT>
</P>

<P><FONT SIZE=2>Much better method is to try and set one and then read back the value.</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: queequeg_x@yahoo.com [<A HREF="mailto:queequeg_x@yahoo.com">mailto:queequeg_x@yahoo.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: Friday, August 17, 2001 4:37 PM</FONT>
<BR><FONT SIZE=2>To: javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>Subject: [Javascript] Re: Detect Cookies? (Slightly OT now)</FONT>
</P>

<P><FONT SIZE=2>Thanks so much for all the responses! Incidentally, I found this </FONT>
<BR><FONT SIZE=2>script on another list. Is this a valid script to use to detect and </FONT>
<BR><FONT SIZE=2>then redirect? Many thanks in advance!</FONT>
</P>

<P><FONT SIZE=2>-rene</FONT>
<BR><FONT SIZE=2>-------------------------</FONT>
<BR><FONT SIZE=2>%@LANGUAGE=&quot;vbscript&quot;%&gt;</FONT>
<BR><FONT SIZE=2>&lt;% response.buffer=&quot;true&quot; %&gt;</FONT>
<BR><FONT SIZE=2>&lt;html&gt;&lt;head&gt;</FONT>
<BR><FONT SIZE=2>&lt;%</FONT>
<BR><FONT SIZE=2>Set browser = Server.CreateObject(&quot;MSWC.BrowserType&quot;)</FONT>
<BR><FONT SIZE=2>%&gt;</FONT>
<BR><FONT SIZE=2>&lt;%</FONT>
<BR><FONT SIZE=2>if browser.cookies = false then </FONT>
<BR><FONT SIZE=2>response.redirect &quot;nocookies.asp&quot;</FONT>
<BR><FONT SIZE=2>else</FONT>
<BR><FONT SIZE=2>response.redirect &quot;region.asp&quot;</FONT>
<BR><FONT SIZE=2>end if</FONT>
<BR><FONT SIZE=2>%&gt;</FONT>
<BR><FONT SIZE=2>&lt;/head&gt;&lt;body&gt;&lt;/body&gt;</FONT>
<BR><FONT SIZE=2>&lt;/html&gt;</FONT>
</P>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Javascript mailing list</FONT>
<BR><FONT SIZE=2>Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>

</BODY>
</HTML>