I believe all you have to do when you set your cookie is:

cookie.setPath("/");

Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629
AIM: jkara3629


-----Original Message-----
From: Hans Liebenberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 8:53 AM
To: [EMAIL PROTECTED]
Subject: Session Cookie HELP!!!


Hi

I sniffed the http output from my servlet and the headers sent were:

HTTP/1.0 200
Date: Thu, 20 Sep 2001 13:38:27 GMT
Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6
DAV/1.0.2 PHP/4.0.5 mod_perl/1.24_01 mod_gzip
Pragma: No-cache
Cache-Control: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie2: JSESSIONID=yhf5wydm11;Version=1;Discard;Path="/thh"
Set-Cookie: JSESSIONID=yhf5wydm11;Path=/thh
Content-Type: text/html;charset=ISO-8859-1

I have a problem which is being caused by the fact that the Set-Cookie
header is setting Path=/thh for the session IS
Is it possible to override this and force the servlet engine to set the path
to "/" without changing my context name ....

Desperate
Hans

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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