Reputation: 115
AFAIK: Session handling is done by the servlet Container (e.g. Tomcat, Glassfish...), i would prefer a solution which is servlet container independent, like php does it, implement some handler or filter and let the application deal with it. I have not found any sort of Information regarding self build session handling in Java.
Upvotes: 3
Views: 2195
Reputation:
The session handling is defined by the Servlet (JavaEE) specification if I'm not mistaken. If you want to hook into it's lifecyle you can do that with a HttpSessionListener
It seems that you can register your own session manager in Tomcat. Maybe that is what you are looking for: http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html
But I fail to see why you want to replace a working, tested and solid implementation with your own code.
Upvotes: 3