php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1399 SetCookie() fails to give cookies to Netscape 4.5 when domain is set.
Submitted: 1999-05-11 15:08 UTC Modified: 1999-05-18 22:19 UTC
From: jdrake at 4thdimension dot net Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.7 OS: Linux
Private report: No CVE-ID: None
 [1999-05-11 15:08 UTC] jdrake at 4thdimension dot net
I have tried a number of different usages with setcookie().  All of the usages I tried conform to the manual's explaination of setcookie().

The cookie is sent fine UNLESS I set the domain field.  If I do set the domain field, then Netscape won't parse the cookie.  IE4 parses it fine.

I tested with Netscape 4.51 under Linux and Windows98.

I know Netscape is incredibly unforgiving when it comes to syntax, yet the
output i get when manually requesting the page with the cookie in it seems
to conform to their "preliminary specification".

For further information, see http://globalwebhost.com/php3/tst/

Joshua J. Drake
jdrake@globalwebhost.com

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-18 22:19 UTC] rasmus at cvs dot php dot net
Well, I tested the scripts at the URL you provided with Netscape and they
worked fine.  They all set the cookie perfectly.  I assume you either figured it
out or have some sort of local client-side problem.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 06:00:02 2026 UTC