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 ?




----- Original Message -----
From: "Jon Stevens" <[EMAIL PROTECTED]>
To: "Turbine-user" <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 1:33 AM
Subject: Re: session timeout, how to know ?


> on 5/29/01 8:43 AM, "Vincent Chappuis" <[EMAIL PROTECTED]>
wrote:
>
> > hi,
> >
> > I'm using TDK 1.1.a.11
> >
> > I put some objects into HttpSession with
data.getSession().setAttirbute().
> > After a moment (timeout), the session is lost. Now, I would like to
redirect
> > the user in a defined screen.
>
> data.getUser().isLoggedIn()
>
> > - How to know I lose the session and that isn't a new session ?
>
> Look at the HttpSession object.
>
> > - Is it better to put my objects in data.getUser().setPerm() ?
>
> Generally. Yes.
>
> > is it persistant ?
>
> If the user is logged in and a database is setup, yes.
>
> > - Do I have to use a cookie ? If yes how ?
>
> HttpSession is either a cookie or is in the URL depending on whether or
not
> cookies are enabled or not.
>
> > - Is is possible in the sessionValidator to check if the session is lost
?
>
> Yes.
>
> > if yes how ?
>
> Look at the examples and the API's.
>
> -jon
>
> --
> If you come from a Perl or PHP background, JSP is a way to take
> your pain to new levels. --Anonymous
> <http://jakarta.apache.org/velocity/ymtd/ymtd.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