Well here is the whole story
It was intended to support language swithcing in jetspeed ( e.g. a link at the top
navigation that switch between two languages )
To do this I made the following modifications
- Add Action class modules/actions/ SwitchLanguage.java and a link in the top
navigation that call this action . in the action body I added a Locale object to the
session and change this locale when the user click on switch language link .
- Change Turbine code that gets the Locale from the RunData object to check the
object in the session associated with the RunData object
namely in the class : org/apache/turbine/ services/localization/
LocaleDetector.java
I change the static method “getLocale(RunData data)” to get the locale from the
session rather than the http request header
- Also i found that i had to change the class org/apache/turbine/
services/localization/ LocalizationTool.java
I change the method “init(Object data)” to set the locale member variable to the
locale object from the session rather than the http request header
at the initial case when there is no Locale object in the seesion I just put it to the
Locale of the browses made the request ...
It works fine with me expect in the following case
- If the user's browser locale is "en" and and anoymous user browse the jetspeed he
will get the "en" localized pages
- If he/she clicked on the switch language link the new locale will change to "ar" and
he/she will browse the "ar" localized pages normally
- Now if he logs in with a registeded user the pages are retured to the "en" locale
and this means that the Locale session variable was cleared from the session so i got
the default locale of the browser wihich is "en" !!!!
Any Help ?
-----Original Message-----
From: Pernoud Aurelien [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 6:01 PM
To: Jetspeed Developers List
Subject: RE: why Session is invalidated when user logs in
Can you provide a sample test case ?
Youssef Mohammed a écrit :
> I checked it . The JSESSIONID is not changed when the user logs in but
> the variables are cleared from the HTTPSession object !!!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]