> Our users will be moving between a secure site and nonsecure 
> site (and although I know that this is common and easy to do) 
> - how can I use a cookie to track them throughout their visit 
> (it seems that if I set it at the secure portion then it can't 
> be read by a non-secure site).

You can set a cookie in a secure site and have it work in a non-secure site.
In your CFCOOKIE tag, you need to make sure you don't specify SECURE="TRUE"
or SECURE="YES". If the hostnames are the same for both sites, that should
be all you have to do. For example, if the URL for the secure site was
https://www.kennedy-center.org/ and the URL for the non-secure site was
http://www.kennedy-center.org/, that would work.

If the two sites have different host names, you'll have to add the DOMAIN
attribute to your CFCOOKIE tag:

<!--- in https://secure.kennedy-center.org/ --->
<cfcookie name="trackme" value="someval" domain=".kennedy-center.org">

That cookie would be available when the browser visits
www.kennedy-center.org.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to