Hello, We have 3 sites. I'll call them www, abc, and xyz. I have a cookie that is a domain cookie and has a userid as a value. I have written code for each site that uses onSessionStart and onRequestStart to check for the cookie so that when users travel between the 3 sites they will be automatically logged in when they get there. They might never go to one of the other sites OR they might go there and then go onto another site and login. That is the reason for both onSessionStart and onRequestStart.
The problem is Logout. I have written logout code to clear certain session vars and cookies. This code is on WWW. for testing. Within this code I do CFHTTP calls to the other two subdomains to a file that runs a CFC that looks like the following: <cffunction name="killSession" access="public" hint="logs out user when called from a remote site" output="false" returntype="void"> <cfset var local = StructNew()> <cfset local.delSessVarsList = "userid,userdata"> <cfset local.delCookieList = "domain_userid,sesid,showdebug,trak"> <cfloop collection="#session#" item="i"> <cfif ListFindNoCase(local.delSessVarsList, i)> <cfset StructDelete(session,i)> </cfif> </cfloop> <cfcookie name="domain_userid" value="loggedout" expires="NOW" domain=".projectsinknowledge.com"> <cfset session.userid = ""> <cfset session.userdata = ""> <cfloop collection="#cookie#" item="j"> <cfif ListFindNoCase(local.delCookieList, j)> <cfset StructDelete(cookie,j)> </cfif> </cfloop> <cflog file="testLOService" type="Information" text="I am in the ABC remote cfc."> <cfreturn> </cffunction> If I call the logout file on the ABC. subdomain directly in the browser like: http://ABC.ourdomain.com/logout_test.cfm then I look at the session dump and everyting has been deleted or expired correctly. But, if I call the same file from the CFHTTP call in the code on WWW. then it doesn't work. Does ColdFusion not allow me to clear cookies and session vars if I am calling the CFM page from a different server? Thanks, Jerry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:346163 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm