2013-08-20, 07:03:26
BUG: duplicate language cookie entries (one for /, another for /example/, third for /smth/smth/) which are causing "random" language switching through the entire site.
Reason: cookies has scope based on url (directory) which were set.
// hints from http://stackoverflow.com/questions/76735...te-cookies
To fix it, change i18n_base/frontend.class.php:39 to this:
Reason: cookies has scope based on url (directory) which were set.
// hints from http://stackoverflow.com/questions/76735...te-cookies
To fix it, change i18n_base/frontend.class.php:39 to this:
PHP Code:
setcookie(I18N_LANGUAGE_COOKIE, $_GET[I18N_SET_LANGUAGE_PARAM], 0, '/');