how to implement custom http session in java?
问题 I will need to implement my own version of HttpSession in Java. I have found very little information which explains how achieve such a feat. I guess my problem is - how do I override the existing HttpSession no matter the application server's implementation? I did run across a quality but rather old read which helps me achieve my goal - http://java.sun.com/developer/technicalArticles/Servlets/ServletControl/ Are there any other approaches? 回答1: Its two ways. "Wrapping" the original