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]

Reply via email to