• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is Session LifeCycle Event handling?

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
.

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are APIs for both:
1) request.getSession()
2) session.invalidate()
 
reply
    Bookmark Topic Watch Topic
  • New Topic