In a web application, you need to audit changes to session attributes. Which listener would you implement?
- HttpSessionAttributeListener
- HttpSessionBindingListener
- HttpSessionEvent
- HttpSessionListener
The HttpSessionAttributeListener interface is used to audit changes to session attributes. This allows you to perform actions when attributes are added, removed, or replaced in a session.
Loading...
Related Quiz
- The process of retrieving a connection from the pool, using it, and then returning it is known as _________.
- In a scenario where a user's session cookies are stolen via XSS, what security measures could have prevented this?
- In JDBC, how can you ensure that all resources are freed, even if an SQL exception occurs?
- Which interface must a class implement to act as a filter in a web application?
- Consider a scenario where a servlet application needs to update client-side widgets in real-time. Which technology would be more efficient: AJAX polling or WebSockets?