[thelist] Cookies in Netscape 4.75

Anand, Sashi sanand at probusiness.com
Thu Apr 12 20:56:55 CDT 2001


hi,
  I'm having problems while setting the cookies in Netscape 4.75 when I try
to set a domain it is not recognising the cookie. but the code works well
with IE!.

any ideas ?

a snippet


	Cookie cookie = new Cookie(COOKIE_NAME, COOKIE_VALUE);

	// set cookie age to -1 so it is a non-persistent cookie
	cookie.setMaxAge(-1);

	// domain
	//cookie.setDomain("mydomain.");
	cookie.setDomain(".mydomain.");


	// allow cookie on any subdirectory under root.
	cookie.setPath("/");

	// Add new cookie to response
	pResponse.addCookie(cookie);

Sashi Anand Sundaravadanam
ProBuisness R&D Internet


Tel - (925)737-7171 (O)
Room No: NC16
http://www.probusiness.com





More information about the thelist mailing list