In fact, I can have an application where I don't have to login (a site with
public part and a secure part)
An example. I connect to the site. I set the language (which is associated
with the session because there is no user). Then the "surfer" want to login
to access the secure part of the site. If the session variable are reset, he
has to redefine the language and all the variable associated with the
session.
Herv�
----- Original Message -----
From: Rafal Krzewski <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 11:31 AM
Subject: Re: How to ask Turbine not to reset session variables at login
> 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]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]