You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Dmitry I. Zubarovsky" <au...@rambler.ru> on 2004/04/01 18:51:09 UTC
Re[2]: Listening for expiring sessions
Hello stephen,
That happens when IEngineService generates stalesession exception or
user generates it.
Concerning implementing session listener ,
you need to specify listener class in web.xml file
Dima
ss> that only happens when the a user generates a stalesession correct?
ss> what i need to do is listen to when the container sends a
ss> HttpSessionEvent i.e in the HttpSessionListener interface there is a
ss> method sessionDestroyed( HttpSessionEvent ev ) that gets notified when
ss> a session expires
ss> i tried extending ApplicationServlet and implmenting the
ss> HttpSessionListener with some simple system.out 's when a session is
ss> created / destroyed , how ever they never get notified
ss> On 1 Apr 2004, at 17:21, Dmitry I. Zubarovsky wrote:
>> Hello stephen!
>>
>> you can override handleStaleSessionException method in your Engine
>> for example
>>
>> protected void handleStaleSessionException(StaleSessionException
>> p_pStaleSessionException,
>> IRequestCycle
>> p_pRequestCycle,
>> ResponseOutputStream
>> p_pOstreamReponse)
>> throws IOException,ServletException {
>>
>> redirect(CConstants.HOME_PAGE_KEY,p_pRequestCycle,p_pOstreamReponse,
>> p_pStaleSessionException);
>> }
>> Regards,
>> Dima
>>
>>
>> ss> is there any tapestry object / method that gets notified when a
>> session
>> ss> has expired
>>
>> ss> Stephen
>>
>>
>> ss>
>> ---------------------------------------------------------------------
>> ss> To unsubscribe, e-mail:
>> tapestry-user-unsubscribe@jakarta.apache.org
>> ss> For additional commands, e-mail:
>> tapestry-user-help@jakarta.apache.org
>>
>>
>>
>> --
>> Best regards,
>> Dmitry mailto:aurox@rambler.ru
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
ss> ---------------------------------------------------------------------
ss> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
ss> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
--
Best regards,
Dmitry mailto:aurox@rambler.ru
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org