Identify the listener interface that would be used to log session creation and destruction.
- HttpSessionActivationListener
- HttpSessionBindingListener
- HttpSessionEvent
- HttpSessionListener
The HttpSessionListener interface is used to log session creation and destruction events. This allows you to perform actions when sessions are created or destroyed in a web application.
Loading...
Related Quiz
- For an application that needs to authenticate users based on roles, what is the best approach to implement this in servlets?
- What is the significance of the web.xml security constraints in servlet security?
- How can containerization aid in scaling web applications?
- For form submission with file upload, the __________ content type and the _______ method are used.
- What is the role of the Secure flag in a cookie?