> I think this would be easy but seems not. We have a main site at > www.oursite.com and then we have 2 subdomains. We'll call them: > second.oursite.com and third.oursite.com. > > A person visits our main site at www.oursite.com and we set these two cookies: > > <cfcookie name="TestWWW" value="just_testing" expires="never"> > <cfcookie name="userid" value="#verifiedID#" expires="never" > domain=".oursite.com"> > > And then the user goes to one of the subdomains - second.oursite.com. > > How do I remove (expire) that TestWWW cookie from the subdomain login page? > From the login page of the subdomain second.oursite.com: > > <cfif IsDefined("cookie.TestWWW")> does not return as True even though I > see that it does exist. > > In Firebug I see that the TestWWW cookie domain appears as: www.oursite.com > and, the userid cookie is: .oursite.com > > Shouldn't I be able to remove that TestWWW cookie since the user now at > second.oursite.com?
The browser won't send that cookie to second.oursite.com if it received a host-specific cookie from www.oursite.com. The only place you can set that cookie is www.oursite.com. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345684 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm