سؤال

I have created a HttpSessionListener on my webapp, and its works fine. How can i create a similar request listener, called when a user make a request on a session? It is possible?

هل كانت مفيدة؟

المحلول

There is ServletRequestListener. It is notified whenever a request is created and destroyed.

Note that "make are request on a session" does not make sense. The servlet container associates a session with a request based on the JSESSIONID passed with the request.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top