You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christophe Reynaud <cr...@one2team.com> on 2003/04/09 14:41:36 UTC

Problem of session timeout

Hi,

We are using tomcat 3.3-3.

It seems that for some unknown reasons, the session timeout is not 
activated and thus the function "valueUnbound" we have written is not 
called ... It works very well a few days, and after this period, the 
timeout is completely ignored. 

Does someone have an idea of solution for this problem?

Thanks in advance.

Christophe


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Problem of session timeout

Posted by Christophe Reynaud <cr...@one2team.com>.
Of course it was TC 3.3.1.

- The event listener object  I use is very simple and something like :

public class HttpSessionListener implements *HttpSessionBindingListener*{

  private String logid;

  public HttpSessionListener(String id) {
    logid = id;   
  }

  public void valueUnbound(final 
javax.servlet.http.HttpSessionBindingEvent p1) {
    System.out.println("** "+new java.util.Date()+" DISCONNECTION OK for 
"+logid);
  }
  public void valueBound(final 
javax.servlet.http.HttpSessionBindingEvent p1) {
    // Nothing here.
  }

}

And I set the object in the session like this (in a JSP, during a login 
phase) :

          request.getSession(false).putValue("HttpLogin", new 
HttpSessionListener(login));


Is there someting wrong in the object definition ?  It works very well 
during about 1 week, and then the listener is no more called ...


Bill Barker wrote:

>Other than the fact that TC3.3-3 is only a pipe-dream at the moment
>(3.3.2-dev is the current Nightly version)....
>
>If you could post a web-app that demonstrates this to
>http://nagoya.apache.org/bugzilla, I would be very interested in it :).
>AFAIK, valueUnbound works as expected with TC 3.3.x, but you wouldn't be the
>first to prove me otherwise :).
>
>"Christophe Reynaud" <cr...@one2team.com> wrote in message
>news:3E941500.1050902@one2team.com...
>  
>
>>Hi,
>>
>>We are using tomcat 3.3-3.
>>
>>It seems that for some unknown reasons, the session timeout is not
>>activated and thus the function "valueUnbound" we have written is not
>>called ... It works very well a few days, and after this period, the
>>timeout is completely ignored.
>>
>>Does someone have an idea of solution for this problem?
>>
>>Thanks in advance.
>>
>>Christophe
>>    
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>

-- 
Christophe Reynaud
One2team
01 43 38 19 80
06 07 16 38 90
12 bis rue de la Pierre Levée
75011 Paris
FRANCE



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Problem of session timeout

Posted by Bill Barker <wb...@wilshire.com>.
Other than the fact that TC3.3-3 is only a pipe-dream at the moment
(3.3.2-dev is the current Nightly version)....

If you could post a web-app that demonstrates this to
http://nagoya.apache.org/bugzilla, I would be very interested in it :).
AFAIK, valueUnbound works as expected with TC 3.3.x, but you wouldn't be the
first to prove me otherwise :).

"Christophe Reynaud" <cr...@one2team.com> wrote in message
news:3E941500.1050902@one2team.com...
> Hi,
>
> We are using tomcat 3.3-3.
>
> It seems that for some unknown reasons, the session timeout is not
> activated and thus the function "valueUnbound" we have written is not
> called ... It works very well a few days, and after this period, the
> timeout is completely ignored.
>
> Does someone have an idea of solution for this problem?
>
> Thanks in advance.
>
> Christophe




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org