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

CF 7 / IIS 6 - how to get cookies working with multiple websites

Apr 07, 2016 Apr 07, 2016

Copy link to clipboard


Running CF 7 on Windows 2003 Server with IIS 6.  Server is named usileng01.xyz.com.  It has one IP address and three web sites defined in IIS.  All three are using the server's IP address on port 80.

1) Default Web Site - Home directory in IIS points to C:\Inetpub\wwwroot

2) itrac.web.xyz.com - has "Host header value" in IIS set to itrac.web.xyz.com.  Home directory points to E:\iTracDocumentRoot.  itrac.web.xyz.com is a DNS alias to usileng01.xyz.com.

3) itdata.web.xyz.com - has "Host header value" in IIS set to itdata.web.xyz.com.  Home directory points to E:\iTracDocumentRoot\IT. itdata.web.xyz.com is a DNS alias to usileng01.xyz.com

All three sites have anonymous access disabled and "Authenticated access" in IIS set to "Integrated Windows authentication" since PCs are logged into the AD domain.

When accessing the web server via a DNS name (either usileng01.xyz.com, itrac.web.xyz.com, or itdata.web.xyz.com), the CFID and JSESSIONID change on every access, so I'm unable to see the cookies.  I can set cookies fine and they appear in the PC's cookie file.

However, when accessing the web site via the server's IP address (e.g., the CFID and JSESSIONID remain the same and I can see the cookies.

I have tried all combinations of CFAPPLICATION's options sessionManagement, setDomainCookies, clientManagement, setClientCookies, and clientStorage.  Other than changing what's in the cookies, session, and client variables, nothing has worked.

Any idea why I can access cookies when using IP address but not DNS name?  And how to get them working with DNS names?






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

Have something to add?

Join the conversation