Your web site has many user-customizable features, for example font and color preferences on web pages. Your IT department has already built a subsystem for
user preferences using Java SE's lang.util.prefs package APIs and you have been ordered to reuse this subsystem in your web application.You need to create an
event listener that stores the user's Preference object when an HTTP session is created. Also, note that user identification information is stored in an HTTP cookie.
Which partial listener class can accomplish this goal?
Given:
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a
container which supports distributed applications?
Your web application requires the adding and deleting of many session attributes during a complex use case. A bug report has come in that indicates that an
important session attribute is being deleted too soon and a NullPointerException is being thrown several interactions after the fact. You have decided to create a
session event listener that will log when attributes are being deleted so you can track down when the attribute is erroneously being deleted.Which listener class will
accomplish this debugging goal?
A developer for the company web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these
customers can still use the web application?