in reply to Problem with Cookies on Netscape but Ok in IE

Off the cuff my hunch is the leading . you're supplying in the domain. You might want to check the Netscape developer docs, as they are the ones to have originally defined what a cookie is.

UPDATE A paper on cookies. Note the domain, not the cookie, has . # restrictions. Also note that that leading . would cause problems for people visting your site (assuming you have DNS entires for them) as jplan.com and not www.jplan.com and foo.jplan.com

--
perl -pe "s/\b;([st])/'\1/mg"

  • Comment on Re: Problem with Cookies on Netscape but Ok in IE

Replies are listed 'Best First'.
Re: Re: Problem with Cookies on Netscape but Ok in IE
by Anonymous Monk on Jan 16, 2002 at 07:39 UTC
    I tried without the .domain.com and it still does not work. the code for these to programs can be run:
    http://jplan.com/cgi-bin/ctb/setCookie.pl http://jplan.com/cgi-bin/ctb/getCookie.pl
      Well that setCookie is still setting the domain with a preceding . You are also limiting access to the cookie to only setCookie by the path you are using.
      HTTP/1.1 200 OK Date: Wed, 16 Jan 2002 03:09:40 GMT Server: Apache/1.3.19 (Unix) FrontPage/4.0.4.3 Set-Cookie: user=dummy; domain=.jplan.com; path=/cgi-bin/ctb/setCookie +.pl Set-Cookie: password=hispassword; domain=.jplan.com; path=/cgi-bin/ctb +/setCookie.pl Connection: close Content-Type: text/html

      --
      perl -pe "s/\b;([st])/'\1/mg"

      I wrote a client side program to write the cookie, and it succeeds, and my cgi get cookie works so the setCookie cgi program is still the problem. ummmm..........