Skip to main content
Participant
March 11, 2011
Question

this.setDomainCookies Problem

  • March 11, 2011
  • 1 reply
  • 1895 views

I am trying to setup a cluster of CF9 Standard servers on RHEL using client scope with database storage as default.

I have 2 servers within the same domain.

srv1.mydomain.com

srv2.mydomain.com

and a third db server holding the clientsessions mysql db

In my Application.cfc I have

<cfset this.name = "myApp">

<cfset this.clientManagement = "Yes">

<cfset this.setClientCookies = "Yes">

<cfset this.datasource="mydatasource">

<cfset this.setDomainCookies = "Yes">

The experience I'm getting is that the cookie being set in NOT a domain cookie. ie it's domain is not set to .mydomain.com but rather the server.

It's as if it's ignoring the SetDomainCookies directive.  I'm trying to maintain state in an HA setting if I loose an app server or in a non-cookie sticky loadbalancing setting.

Is there something else I need to do to get the cookies to be set to domain vs server?

Help appreciated.

This topic has been closed for replies.

1 reply

Participating Frequently
March 11, 2011

Hi,

1. Check in your CFIDE/Administrator/ >Settings that you're using J2EE sessions - you must for the cluster to work if CF is the cluster manager being used 2. Check in your CFIDE/Administrator/ >Enterprise Manager > Cluster Manager that registered servers are by domain not IP

Reboot CF instances

If that doesn't help -try reading this

http://www.coldfusionmuse.com/index.cfm/2006/7/28/sessions.and.subdomains

This may be worth a look as well:

http://kb2.adobe.com/cps/191/tn_19193.html

Hope this helps