Jon,

As far as I can tell, by the time a screen or action class is called the 
HttpSession.isNew() method will always return false due to
session attributes being set in Turbine.java. This means that is impossible to 
redirect someone to a "your session has expired"
screen. I have the same problem as Vincent, and have taken your advice and looked at 
the session object but I'm not sure what you
were talking about if not the isNew method.

What I need to do is redirect an anonymous user to a "Your session has expired" screen 
if their session has timed out. I could just
catch the null pointer returned by the getTemp method, but this is a bit of a hack.

Any help is much appreciated.

Gareth

>
> on 5/30/01 2:54 AM, "Vincent Chappuis" <[EMAIL PROTECTED]> wrote:
>
> > OK!
> >
> > but every time I lose the session, a new session is created. How to now if
> > it is a new session(created because I lost the session) or just because this
> > is
> > the first time I hit the system ?
>
> I already told you...
>
>     "Look at the HttpSession object."
>
> You may wish to go get Jason Hunter's book on Servlets or just read the
> Servlet API. This is outside of the scope of Turbine.
>
> -jon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to