You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fabien Modoux <fa...@voicemate.com> on 2001/05/24 18:56:55 UTC

Session creation

I have a question on how sessions are created at the server.

I have a client interacts with the main server, using cookies to
keep state. At some point, this server links to another server 
that contains the logic for a particular application. The
request to this new server contains a cookie with the jsessionid
of the main server, but there is no such session in the new
server. 

My question is what is happening at a server when it receives
a cookie that does not correspond to an existing session and
the servlet calls request.getSession? Does it replace the cookie
value with the new session id, does it create a session with
the given id?

Thanks,

-Fabien Modoux

---------------------------------------------      
Fabien Modoux,
Voicemate - http://www.voicemate.com