Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steef 8 posts 20 karma points
    Feb 26, 2009 @ 13:06
    Steef
    0

    Multilangual sites & cookies

    Hi all,

    I have a multilangual site where different cultures are identified by different subsites, the
    Dutch site is identified by http://nl.somesite.com, the english by http://en.somesite.com,
    etc.

    All my users enter the website via http://www.somesite.com where a default culture is selected
    based on the users ip-adress. I want the website to remember what language preference a user has, so if a user on the dutch website indicates he wants english as his prefered culture, the website
    should remember that using cookies. My problem is that whenever the system stores a cookie on http://nl.somesite.com the cookie gets stored for that site and not for http://www.somesite.com, which is where I would read the cookie.

    thanks for any reply, Stephan

  • Nico Lubbers 151 posts 175 karma points
    Feb 26, 2009 @ 23:14
    Nico Lubbers
    0

    Cookies accross subdomains are a problem if you use the defaults, but it is possible to set a domain property on the cookie

    Check the following link: (scroll down to domains)
    http://msdn.microsoft.com/en-us/library/ms178194.aspx

    Microsoft is telling that "somesite.com" should work als for all subdomains, but I once had an issue that it only worked when using a leading dot ".somesite.com"

    EDIT: I just see that my thoughts about the leading dot are confirmed in the very bottom of the msdn page (in the community feedback)

    Nico

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies