• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

this.setDomainCookies Problem

New Here ,
Mar 10, 2011 Mar 10, 2011

Copy link to clipboard

Copied

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.

TOPICS
Advanced techniques

Views

1.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 11, 2011 Mar 11, 2011

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation