As I understand it, this is part of the "spec" for cookies. When they are
set, there is a "domain" portion, that if not specified defaults to the
root of the http request. So, by calling the page by different addresses
you will get a seperate cookie for each one, unless you specifically set
the cookie's domain.
See
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.Cookie.htm
l
But then only the specified host will be able to see the Cookie, others
won't get a Cookie at all.
Lance Lavandowska
Software Engineer
http://www.AgDomain.Com
-----Original Message-----
From: Ball, Stephen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, September 08, 1999 7:39 AM
Subject: Cookies For Session Management, Is It JRun?
>Hello All,
> I don't know if this has already been discussed, but I am
constantly
>running into a "situation". I am maintaining a base url throughout my
>session. (hostname.domainname.com:8000) I rely on this url for all
types
>of navigation. On occasion, myself or another user will use an
equivalent
>valid machine name for our intranet, be it an IP address or just a local
>hostname to access the site. As session objects are being "put" and then
>"get", I get all sorts of null session objects. After checking it out, I
>realized that the IP address, the local hostname, the fully qualified
name
>are all maintaining different sessions. Therefore all session objects
under
>the IP address are maintained under a seperate cookie from the session
>objects maintained under the hostname..... Is this part of the spec?
Is
>this a JRun issue only? Do I just need to come up with a best practice
for
>coding around this?
>
>Thanks In Advance,
>
>Stephen C. Ball
>Consultant, Software Architects, Inc.
>[EMAIL PROTECTED]
>
>=========================================================================
==
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html