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:
- User arrives to
http://mydomain.com$_SESSION is set to 'en' - User gets redirected to
http://mydomain.com/en/(since its the first time visiting or user never changes to French language version) - User selects French as his language, $_SESSION is reset to 'fr'
- User goes to
http://mydomain.com/and gets redirected tohttp://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,