Skip to main content
Known Participant
January 8, 2009
Question

Sessions and subdomains

  • January 8, 2009
  • 2 replies
  • 478 views
Hello all,

I have an applications that has two language (english and french). The applications look at the subdomain name and display text in the language depending on which domains is being used.

Ex : myenglishsubdomain.mydomain.com and myfrenchsubdomain.mydomain.com.

Since the beginning, i didnt' have to do anything about session sharing. Users could start filling out the wizard forms in english and switch to french and not have to worry about the session. but suddenly, when users go from language to another, the server would reassign a new session (sessionid, cfid and cftoken) when they toggle. My question is what changes? Is this IIS or is this CF related? Any idea? Please let me know if you require additional details.
This topic has been closed for replies.

2 replies

Inspiring
January 9, 2009
LukeDD wrote:
> Hello all,
>
> I have an applications that has two language (english and french). The
> applications look at the subdomain name and display text in the language
> depending on which domains is being used.
>
> Ex : myenglishsubdomain.mydomain.com and myfrenchsubdomain.mydomain.com.

In your cfapplication tag check that setDomainCookies is true (so the
cookie is set on the .mydomain.com domain and is sent to both subdomains).

--
Mack
LukeDDAuthor
Known Participant
January 9, 2009
I've tried this before and does not seems to work.
Participating Frequently
January 9, 2009
If you haven't changed any of the code that relates to how your sessions are managed I'm not sure how this would have changed on the server. In most cases sessions won't carry across domain names; a related post is here

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=3&threadid=1415074&enterthread=y

where someone is trying to maintain a session with two different programming languages. So the question is, how are you storing your sessions, and has anything significant changed in your code and/or on the server?