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

Sessions and subdomains

Explorer ,
Jan 08, 2009 Jan 08, 2009

Copy link to clipboard

Copied

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.
TOPICS
Advanced techniques

Views

416

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 ,
Jan 08, 2009 Jan 08, 2009

Copy link to clipboard

Copied

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&ente...

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?

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
LEGEND ,
Jan 09, 2009 Jan 09, 2009

Copy link to clipboard

Copied

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

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
Explorer ,
Jan 09, 2009 Jan 09, 2009

Copy link to clipboard

Copied

I've tried this before and does not seems to work.

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
LEGEND ,
Jan 12, 2009 Jan 12, 2009

Copy link to clipboard

Copied

LATEST
LukeDD wrote:
> I've tried this before and does not seems to work.

Is the site live so we can have a look ? Do you use cfcookie later in
the code to transform CFID and CFTOKEN into session cookies ?

--
Mack

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