You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bruce Petro <bp...@artromick.com> on 2007/04/04 20:10:42 UTC

Session variable and login help ...

We're just getting started in Tapestry and our login is initialized as
seen below.

But a second browser (mixing IE and Foxfire) seem to "share" the login
of the first person - so I believe this is wrong.

I'm guessing that the Start class is only initialized once for all
users, is that true?

Any suggestions?

 

Thanks!

 

@ComponentClass

public class Start {

      public Start() {

            setLoginState(new LoginState());

            setLoginMessage("Please Login");

            System.out.println("Start Constructor");

      }

      @Persist("session")

      private LoginState _loginState;