Thanks for your lengthy reply jon. ;) but I don't understand how your suggestion is 
possible. I don't want to check if every session
is old, but check on a per screen basis. Ie. If my screen contains data that is not 
persisted, and therefore requires it to be in
the session, I must be able to check whether the session is fresh. Otherwise, on pages 
with no data taken from the session I don't
care whether the session has expired or not. I don't see how I could achieve this with 
a session validator.

I suppose I could have the sessionvalidator return false for requiresNewSession but I 
am worried about knock on effects in Turbine
(my understanding of how Turbine handles sessions is fairly primitive as you can tell!)

I would appreciate it if somebody could expand on Jon's original help.

Thanks a million

Gareth

> -----Original Message-----
> From: Jon Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 18:12
> To: Turbine-user
> Subject: Re: session timeout, how to know ?
>
>
> on 6/18/01 2:59 AM, "Gareth Coltman" <[EMAIL PROTECTED]> wrote:
>
> > 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.
>
> It is possible.
>
> > 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.
>
> You would do this in your own SessionValidator.
>
> -jon
>
> --
> "Open source is not available to commercial companies."
>             -Steve Ballmer, CEO Microsoft
> <http://www.suntimes.com/output/tech/cst-fin-micro01.html>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to