Session life cycle consists of:
1. Creation of a newsession. 2. Invalidation of Session
I'm unable to understand the below.How do we implement them.An example would be helpful.
In addition,a container may passivate and acivate sessions.The Servlet API includes event-handling mechanisms whereby objects(either session or others) can be notified abot passivation and activation The following are the event listeners:
HttpSessionListener and HttpSessionActivationlistener.
For both eent listeners the container encapsulates the asociated event as HttpSessionEvent object.