session data between sub domains| View in Tracker
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 2016.0.01.298513 /
Priority/Frequency: Normal / All users will encounter
Locale/System: ALL / Core
Vote Count: 0
i need to maintain session data between sub domains you can do this easy by setting: this.setdomaincookies="yes" works perfectly because the cfid and cftoken cookies domain is set to ".domain.com" instead of "whatever.domain.com" here is the problem. we are using J2EE sessions. so the cookie that we need to have its sub domain blank is the JSESSIONID this cookie is not set to ".domain.com" it remains "whatever.domain.com" here is the workaround code i am using: setclientcookies = no then add this <cffunction name="onSessionStart" returnType="void" output="false"> <cfcookie name="JSESSIONID" value="#session.sessionid#" domain=".yourdomain.com" httponly = "yes" encodeValue="false"> </cffunction> then do your regular onrequeststart stuff this is just overriding the built in cookie stuff. the best option is still a setting change in the guts of coldfusion i think.