[isf-wifidog] Problem with locales ...
fproulx at lecameleon.net
Jeu 28 Avr 16:50:22 EDT 2005
We have a default locale in the config file that is used the first time or when the session var is empty. We use only session vars, no cookie.
--- "Mina Naguib" <webmaster at topfx.com> wrote:
From: "Mina Naguib" <webmaster at topfx.com>
Date: Thu, 28 Apr 2005 16:45:40 -0400 (EDT)
To: wifidog at listes.ilesansfil.org
Subject: Re: [isf-wifidog] Problem with locales ...
-----BEGIN PGP SIGNED MESSAGE-----
> I'm having trouble fixing a bug regarding locales. On my dev server it
> works perfectly. But on the auth server it seems like it won't save my
> preferred language to the session... What's wrong ? Can anybody have a
> look. I really have to finish the Pattern language and don't have too much
> time to spend on this stupid bug. It must very very stupid ( something
> related to sessions I guess )....
This has been around forever.
If you jump from the auth server to www.ilesansfil.org and set your
language there (which sets the "lang" cookie on the entire domain
".ilesansfil.org") then hop back to auth.ilesansfil.org, it'll respect
your newly-selected language.
I haven't dabbled into the auth server code, but where does it decide on
the locale ? From a session or does it set a cookie ? If it sets a
cookie, is it on the hostname or the entire domain ?
If it's a hybrid of both cookies and session then that might explain why
it works on your dev machine (not in the .ilesansfil.org domain) and auth
(in the .ilesansfil.org domain which gets fed the cookie set by www.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-----END PGP SIGNATURE-----
WiFiDog mailing list
WiFiDog at listes.ilesansfil.org
Plus d'informations sur la liste de diffusion WiFiDog