"Lee Surma" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there a good way to determine if a users browser is set to not accept
> cookies as you are attempting to set a cookie? I want to be able to send a
> message to the user if blocking is on.
<cfif isdefined("cookie.tmtCookieTest")>
<cflocation url="yescookie.htm" addtoken="No">
<cfelseif not isdefined("url.tmtCookieSend")>
<!--- First time the user visit the page, set the cookie --->
<cfcookie name="tmtCookieTest" value="Accepts cookies">
<!--- The cookie was send, redirect and set the tmtCookieSend flag as an
url variable --->
<cfheader name="Refresh" value="0; URL=#cgi.script_name#?tmtCookieSend=1">
<cfelseif isdefined("url.tmtCookieSend")>
<!--- We tried sending the cookie, no way, cookies are disabled, get out of
here --->
<cflocation url="nocookie.htm" addtoken="No">
</cfif>
--
----------------------------
Massimo Foti
[EMAIL PROTECTED]
http://www.massimocorner.com
Dreamweaver, Ultradev and Fireworks goodies
http://www.projectseven.com/viewer/snippets.htm
Snippets Panel
----------------------------
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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