>"Request the war file"? That sounds, well, a little imprecise, what >*exactly* are you requesting? I request with a browser the doGet method of a servlet, inside the toGet I call "request.getSession(true);"
>They're in different classloaders, (assuming you mean .hashCode()), so >that's expected. This information is important, why? I think a war file must have different classLoaders because one war should never see objects from an other war, but I'm not an expert for this topic. This information is important because I clear caches for the session object and the destroy method is not called for all created sessions. >How do you know this, what code are you using? >What code is in your Listener? se.getSession().hashCode() -> different hash se.getSession().getId() -> same ID >But you said it's the same session id, so if it was destroyed once, why >would it be destroyed again? because only the ID is the same, but multiple HttpSession objects are created >So you destroyed a session, and then made another request, and when you >did a new session was created. Surprise? Not really. NO, no new session is created -> the old not destroyed one is used ! -- View this message in context: http://old.nabble.com/HttpSessionListener-sessionDestroyed-only-called-once-for-sessionID-tp26291791p26292441.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org