You can include the template below, then check the value of the variable
BrowserTakesCookies.
example:
<CFINCLUDE template="BrowserTakesCookies.cfm">
<CFIF BrowserTakesCookies>
<!--- Browser accepts cookies --->
<CFELSE>
<!--- Browser rejects cookies --->
</CFIF>
<!--- BrowserTakesCookies.cfm - START --->
<CFIF not IsDefined("Cookie.CookieTest")>
<CFIF IsDefined("URL.CookieTested")>
<CFSET Variables.BrowserTakesCookies = FALSE>
<CFELSE>
<CFCOOKIE name="CookieTest" value="TRUE" expires="NEVER">
<CFIF CGI.QUERY_STRING is not "">
<CFSET Variables.URLAppend = "?#CGI.QUERY_STRING#&CookieTested=TRUE">
<CFELSE>
<CFSET Variables.URLAppend = "?CookieTested=TRUE">
</CFIF>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Testing Browser...</TITLE>
<meta http-equiv="refresh"
content="0;url=<cfoutput>#CGI.SCRIPT_NAME##Variables.URLAppend#</cfoutput>">
</HEAD>
<BODY>
</BODY>
</HTML>
<CFABORT>
</CFIF>
<CFELSE>
<CFPARAM name="Variables.BrowserTakesCookies" default=TRUE>
</CFIF>
<!--- BrowserTakesCookies.cfm - END --->
----- Original Message -----
From: "S C" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 5:58 PM
Subject: determine if cookies are disabled.
> This is a simple task, but have not yet had to do it.
> What is the best way to determine if the user has
> disabled cookies in their browser?
>
> Thanks in Advance.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists