[Opensource] If not logged in users want to set their Locale
Lirian Ostrovica
lirian.ostrovica at senecac.on.ca
Wed Apr 16 06:15:58 PDT 2003
Hi Mike,
I'm afraid you did not understand me (or I was not clear).
I do not want to create a user session only for the sake of i18n.
A number of visitors of a site, can come as anonymous (not logged in). They
will browse throw the pages that they can, and then simply leave.
It is quite normal that the number of such visitors be well compared, or even
bigger than the number of 'logged in' ones.
In such a case, creating sessions for anonymous visitors will be a real waste
of memory.
That's why, as I said, the solution are cookies, with some sort of URL
rewriting as a backup.
I have seen this recently discusses in Struts user list too.
Lirian
Mike Traum wrote:
> We do it here by setting the session attribute "expresso.LOCALE", the same
> one that expresso uses. Works great!
>
> Did you not want to use cookies? You have to have something to remember
> state info if you want to use Struts/Expresso-sytle i18n. In this case, the
> session is used - which gives you the option of using cookies or the
> jsession querystring parameter.
>
> mike
>
> -----Original Message-----
> From: Lirian Ostrovica [mailto:lirian.ostrovica at senecac.on.ca]
> Sent: Tuesday, April 15, 2003 1:45 PM
> To: opensource at jcorporate.com
> Subject: [Opensource] If not logged in users want to set
> their Locale
>
>
> Hi,
>
> If a not logged in (and no session) user wants to get, let
> say, the French
> version of your i18n-alized web site, you have to send him
> a cookie, and/or
> provide some kind of your own URL rewriting.
> This because the user Locales can only be saved in user
> preferences (Expresso)
> or in user session (Expresso & Struts).
>
> Has someone come across this before ?
>
> Lirian
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list