Hervé Guidetti wrote:
>
> I want to have session variable (i.e language, ...) staying alivable between
> a session and an other.
> I have put the language in the session but, when I log in, Turbine [in
> Turbine.doGet(...)] resets all my session variables and I can't retrieve the
> language.
>
> Is it possible to ask Turbine not to reset the session at login ? Do you
> have another idea ? Do I have to write my own SessionHolder (singleton)
> which keeps the language and other environments variables ?
Do you mean that you wan to keep user preferences persistent across multiple
sessions? You should use User.getPerm / setPerm methods.
The code in Turbine.java you are mentioning is necessary when one user logs
out of the system (using LogoutUser action) and then another user logs in
from the same browser. In certain situations the new user would continue
the old user's session, and this code prevents that.
Rafal
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]