Sessions administrations ver. 1.5


This is the listener for HTTP sessions (as per Servlet API 2.3). This component lets you collect all the sessions for your web application. So you will be able to access to sessions data for any of your users. E.g. iterate over existing sessions, request attributes etc.

How to use it:

a) download sessadm.jar and save it in WEB-INF/lib

b) describe this listener in web.xml.
 


<listener>
   <listener-class>
    com.cj.sessadm.admListener
   </listener-class>
</listener>

In this case listener will be on for the each your JSP file. And live statistics for sessions will be accumulated in servlet context.

How to use accumulated data.

Coldtags suite provides a special taglib for this task. So you may use an appropriate custom JSP tag for data reading. E.g.:
 


<!-- open sessions -->
<adm:getSessionsCount/>

See Sessions administration taglib for details.

Note: Order matters in web.xml. Listeners should be declared after context parameters and above servlets.

   For downloading:

    Sessions listener:  sessadm.jar
 

 ©  Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.

     

Also in JSOS: