Variables SESSION across subdomains. How to make them visible?

Hello world!

I have a Web site and for some reason, many subdomains, as part of the same site. A sort of mainstore.com and phones.mainstore.com, laptops.mainstore.com and so on.

The problem I am facing is I can't make the SESSION (and COOKIES) variables visible between them. If I login on the home page (mainstore.com), everything is ok, but if I then navigate to phones.mainstore.com, the site shows me I'm not connected, of course, because only variable USED to check if a user has signed in or not is not visible on this subdomain.

I have read many articles on this issue, some of them offer solutions, but none worked for me.

Here are the facts:

ColdFusion 9 Enterprise

Windows Server 2008

IIS7

And this is my < CFAPPLICATION > statement:

< CFAPPLICATION NAME = "appName" CLIENTCOMM = "" SETCLIENTCOOKIES = "Yes" SETDOMAINCOOKIES = "Yes" SESSIONMANAGEMENT = "Yes" SESSIONTIMEOUT = "#CreateTimeSpan (0, 0, 20, 0) #" >

Do you have an idea how COOKIES and SESSION variables making visible between all subdomains of the same domain?

Thank you!

Do it manually and tell us what is happening. To do this manually, set the setClientCookies on 'no', then use this code


domain = ". viaromania.eu".
value = "#session. "CFID #" >


domain = ". viaromania.eu".
value = "#session. "CFTOKEN #" >


domain = ". viaromania.eu".
value = "#session. "SessionID #" >

Tags: ColdFusion

Similar Questions

Maybe you are looking for