> How do I check if cookies are allowed on a machine if thats even possible?
>
<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
Team Macromedia Volunteer for Dreamweaver
http://www.macromedia.com/go/team
----------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4