Hello,

No, it does the resent in the Turbine.doGet(..).


  // special case for login, this must happen before
  // the SessionManager is executed in order to allow a
  // user to even login
  if (data.hasAction() &&
data.getAction().equalsIgnoreCase(TurbineResources.getString("action.login")
))
  {
   // If a User is logging in, we should refresh the session here.
   // invalidating session and starting a new session would seem to be a
good
   // method, but I (JDM) could not get this to work well (it always
required
   // the user to login twice).  Maybe related to JServ?
   // If we do not clear out the session, it is possible a new User
   // may accidently (if they login incorrectly) continue on with
   // information associated with the previous User.  Currently the only
   // keys stored in the session are "turbine.user" and "turbine.acl".
   String[] names = data.getSession().getValueNames();
   if (names != null)
   {
    for (int i = 0; i < names.length; i++)
    {
     data.getSession().removeValue(names[i]);
    }
   }
   ActionLoader.getInstance().exec(data, data.getAction());
  }


I don't want to override the behavior of Turbine !!

Herv�


----- Original Message -----
From: Jon Stevens <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 10:40 AM
Subject: Re: How to ask Turbine not to reset session variables at login


on 8/22/2000 1:11 AM, "Herv� Guidetti" <[EMAIL PROTECTED]> 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 ?
>
> Thanks.
> Herv�

No. By default it does the reset in SessionValidator.java I think. You can
override that behavior.

-jon



------------------------------------------------------------
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]

Reply via email to