SESSION variables across subdomains. How to make them visible?
Hi everybody!
I have a website and for some reasons, many subdomains, as part of the same website. Some kind of mainstore.com and phones.mainstore.com, laptops.mainstore.com, and so on.
The problem I am facing is I can't make SESSION variables (and COOKIES) visibile between them. If I login from the first page (mainstore.com) everything is ok, but if I then navigate to phones.mainstore.com, the website is showing me I am not logged in, of course, because SESSION variable used to check if a user is logged in or not is not visible on that subdomain.
I read a lot of articles about this problem, some of them are offering 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" CLIENTMANAGEMENT="No" SETCLIENTCOOKIES="Yes" SETDOMAINCOOKIES="Yes" SESSIONMANAGEMENT="Yes" SESSIONTIMEOUT="#CreateTimeSpan(0, 0, 20, 0)#">
Do you have any idea how to make SESSION variables and COOKIES visible between all subdomains of the same domain?
Thank you!
