Gabriel Belingueres wrote:
Hi,

I just discovered a weird thing:

I have a Tomcat 4.1.12 running in my machine, which is called
"ale2000", and I test my app using http://localhost:8080/xxxxxx as the
url (not the machine name configured in Windows)

When some of the html page make a request to the app, using
http://ale2000:8080/xxxxxx, Tomcat creates other session object,
instead of reusing the same session originally created when I call it
the first time using http://localhost:8080/xxxxxx

Is this behavior correct?
Doesn't it better to create other session based on different IP
addresses, instead of different machine names?

IMO this is correct. Cookies are attached to server names instead of IPs.
Imagine what would happen if you have multiple virtual servers on a machine and session cookies would be per ip (=the same for all servers) instead per server.


HTH
Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to