tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marilen Corciovei <...@nemesisit.rdsnet.ro>
Subject Re: HttpSessionListener.sessionDestroyed
Date Sun, 07 Sep 2003 01:41:12 GMT
After some time I realized that the valueUnbound is actually called much
more than I expected so I am back to the begining. Any other ideeas on
how I can write a session expiration handler aware of the visit object?

Thanks, Len

On Sat, 2003-09-06 at 02:26, Marilen Corciovei wrote:

> Thank you very much, by adding code to the valueUnbound method in my
> AppEngine I was able to achieve the desired goal: to record an
> AUTO_LOGOUT message. Nothing else was needed.
> 
> public void valueUnbound(HttpSessionBindingEvent arg0) {
>         Visit visit = (Visit)getVisit();
>         if(visit!=null){
>             User user = visit.getUser();
>             if(user != null){
>                 UXLogger.log(user, LogTypes.LOG_AUTO_LOGOUT);
>             }
>         }
>     }
> 
> Thanks,
> Len
> 
> On Sat, 2003-09-06 at 02:09, Julio C. Rivera wrote:
> 
> >  From the "Tapestry Developers Guide" 
> > (http://jakarta.apache.org/tapestry/doc/DevelopersGuide/coding.visit.html):
> >    "... the visit object is serialized with the engine ..."
> >  From the "Tapestry Users Guide" 
> > (http://jakarta.apache.org/tapestry/doc/TapestryUsersGuide/state.engine.html):
> > " ... The engine is itself stored as an HttpSession attribute. ..."
> > 
> > About when the session expires:
> > See the valueUnbound method in AbstractEngine 
> > (http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/engine/AbstractEngine.html#valueUnbound(javax.servlet.http.HttpSessionBindingEvent).

> > I *think* it's called when the engine is unbound from the session.
> > 
> > I hope this helps.
> >     Julio.
> > 
> > At 23:57 05/09/2003 +0300, you wrote:
> > >Hi,
> > >
> > >I am trying to perform some action when the session expires: record a
> > >user auto-logout event. I need to find the Visit object somehow. Can
> > >someone tell me how it is the Visit stored? Is it a session attribute?
> > >Is there another way to achieve this goal.
> > >
> > >Thanks, Len
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
> > 
> > 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message