tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Cross Context Session Creation-
Date Fri, 08 Jan 2010 09:55:04 GMT
On 08/01/2010 09:44, Arnab Ghosh wrote:
> Dear Friends,
> 
> In that case -  suppose a session with a *D52869941C38BC234**CD9A940429C403A
> * Id is already present in context B (forwarded from context C ). Now a new
> request with same jsessionID came to context A . Then context A forwarded
> the request to context B .then will it override the existing session Id.

Nope, both requests would use the same session in context B. The chances
of this happening are slim to non-existant. Session IDs are generated
randomly.

> I have another question --------------
> If I comment the method - request.getsession(true) , in that case will there
> be any session??

It depends on a number of factors. Simplest way to find out is to try it.

Mark



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


Mime
View raw message