OK Thanks
But I lose all info about the current user (ex-current user) like the
language (that I put in the session) and other usefull info.
So, to keep this info, I'll put them in a cookie just after the connexion
(login screen) to keep them. If the user session isn't valid, I'll get back
the user info from the cookie (like user language). and like that I'll put
them (info) in the new session.
Is it a right idea or are there another solution to get back the info which
was on the RunData.session attribut ?
----- Original Message -----
From: "Jon Stevens" <[EMAIL PROTECTED]>
To: "Turbine" <[EMAIL PROTECTED]>
Sent: Friday, December 01, 2000 10:01 PM
Subject: Re: Session terminated or not
> on 12/1/2000 1:34 AM, "Chappuis J.-Vincent" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi
> >
> > I'm looking for an element in RunData.session which can tell me if the
> > current session is valid or not.
> > After a few time (which can be set in the TurbineResources.properties),
the
> > session is lose.
> >
> > if the user is idle for long time session timeout occurs and when the
user
> > try to continue after the timeout,
> > I don't want that's make a bug like a "nullPointerException" or
something
> > like that.
> >
> > I would like to catch if the session is available or not via layout and
> > redirect the screen to the login screen.
> > But I don't find the object which can tell me if the session is
terminated
> > or not.
>
> RunData.getSession() which is an HttpSession object which has methods on
it
> to determine if the session object is valid. This is standard Servlet API
> functionality.
>
> You can also be "notified" if you session is invalid by putting something
> into the Session that implements HttpSessionBindingEventListner or
whatever
> that interface is...valueUnboud()/valueBound().
>
> -jon
>
> --
> twice of not very much is still a lot more than not very much
>
>
>
> ------------------------------------------------------------
> 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]