Are you sure the Cookie constructor does not accept additional parameters ?

Cookies can require the directory reference as well as the domain name.
a directory value of "/" makes the cookie accessible from all web pages at a
domain.
Otherwords, the access is specific to the directory that it was created in.


> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kommana, Sridhar
> Sent: Wednesday, May 31, 2000 9:29 AM
> To: [EMAIL PROTECTED]
> Subject:
>
>
> We are using Netscape Enterprise Server with IBM WebSphere
> Application Server 3.0.2.
> If we don't put our cookies in servlets, then session is created
> and we get two client cookies. Simple code used and client cookies
> created are:
>
> HttpSession session = request.getSession(true);
> session.putValue("name", "netTest");
>
> ssuid: 2wFD4w00jJo0003Aejh8bte1u8 (NES cookie)
> sesessionid: ORQ2WEYAAAABMCQKM2JZLWA (WebSphere Cookie to track sessions)
>
>
> When we introduce our cookies in our servlets, the session is not
> getting created. Simple code used and client cookies created are:
>
> HttpSession session = request.getSession(true);
> session.putValue("name", "netTest");
> Cookie testCookie = new Cookie("testCookie", "I am Cookie!");
> response.addCookie(testCookie);
>
> testCookie: I am Cookie! (our cookie)
> ssuid: 2wFD4w00jJo0003Aejh8bte1u8 (NES cookie)
>
> I don't understand why we are not getting sesessionid(websphere
> cookie), when we introduce our cookies!
>
> Thanks in advance.
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to