New Session Service

I posted a message to the list a while back asking for a way to access the session information from the container. The response was that there was no way to do it with Turbine yet.

I have now written a service that allows access to all sessions for the current context. I was hoping to get some feedback on how it works and what it can do before I add it into the Turbine source tree.... If you have any ideas for additional functionality, please make notes at the end of this page!!!!

How it works

I have a listener class that is configured in web.xml to listener for session creation and destruction events. Upon creation or destruction of a session, the session object is passed to the { { { SessionService } } }. This approach work on any container that support the servlet 2.3 API.