• While developing a bilingual site, i chose $_SESSION to store the value of the language according to the visitor’s preferences.

    The flow is as follow:

    1. User arrives to http://mydomain.com $_SESSION is set to ‘en’
    2. User gets redirected to http://mydomain.com/en/ (since its the first time visiting or user never changes to French language version)
    3. User selects French as his language, $_SESSION is reset to ‘fr’
    4. User goes to http://mydomain.com/ and gets redirected to http://mydomain.com/fr/

    My problem is that for some odd reason, it doesn’t work when using Firefox, I checked with Chrome, Safari, Opera and IE8 (yes even IE works).

    When i go to the tmp directory in my server, i can see that firefox does not update the cookie assigned, while all the other browsers do.

    Any idea or suggestion will be highly appreciated.

    Regards,

  • The topic ‘$_SESSION not being saved in Firefox’ is closed to new replies.