Christopher Schultz schrieb:
> Try this:
> 
> Write a filter that wraps the HttpServletResponde object with an
> HttpServletResponseWrapper object that you customize. Override the
> addCookie method like this:
> 
> public void addCookie(Cookie c)
> {
>    super.addCookie(c);
> 
>    new Throwable("Created Cookie").printStackTrace();
> }
> 
> This will emit a stack trace whenever code adds a cookie to the
> response. Try this with a small number of request parameters ;)

Or use the same trick

new Throwable("Oups").printStackTrace();

inside your listener to not just write out session creations and
destroys, but the code stack at that moment. Above Wrapper is nicer,
using the same trick in your existing listener is simpler and faster.

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to