On 10/11/2009 21:44, mauroS wrote:

hello,

I run jbossweb-tomcat55.sar inside jboss-4.0.5.CR1

I have one EAR file with two WAR files inside.

I added HttpSessionListener in web.xml to both wars.

If I request both war files from the same browser

"Request the war file"? That sounds, well, a little imprecise, what *exactly* are you requesting?

I have two HttpSession objects with different hash but with the same sessionID.

They're in different classloaders, (assuming you mean .hashCode()), so that's expected. This information is important, why?

How do you know this, what code are you using?
What code is in your Listener?


> That is exacly what I expected.

I'd be surprised to see the same sessionId from both apps, if they are indeed separate apps.


but sessionDestroyed is only called for the first HttpSession object and
never for the second !

But you said it's the same session id, so if it was destroyed once, why would it be destroyed again?


furthermore sessionDestroyed is never called again for this sessionID

Why would it be, if it was already destroyed?


also if new HttpSessions with new hash and same sessionID are created !
If I request the war file with the "not destroyed session object" again,
there is never a new session created.

So you destroyed a session, and then made another request, and when you did a new session was created. Surprise? Not really.


thanks in advance


Err, right.


p



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to