php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22653 auto cookie set in Netscape client doesn't work
Submitted: 2003-03-11 23:18 UTC Modified: 2003-03-11 23:42 UTC
From: mshaffer at mshaffer dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
 [2003-03-11 23:18 UTC] mshaffer at mshaffer dot com
Hi.

I have session.use_cookie = on, which means that with the session_start() call, a cookies should be set by PHP and remembered throughout...

This internal PHP cookie set function does not work in Netscape due to netscape's noncompliance with RFC's... There has been previous bug reports about this issue, but internally you have marked them as BOGUS because it works appropriately; you are write the internal set cookie workings work find in IE, but not at all in either Netscape client (4.x or 6.x)... is PHP part of the wintel network, or are we looking for real solutions.

I would like to use the PHP session handling as is, but may have to rewrite my own cookie management rather than use the internal cookie writing feature, because you are ignoring the browser differences between setting a cookie...

As I researched this question on the web, one reader suggested dropping the "/" for the path to empty... however, that is only for netscape, it breaks IE.

The bug in Netscape appears to be in the method of setting the domain ... if I leave the domain field blank, Netscape seems to handle the PHP session cookie fine... if is set "mydomain.com" then it fails to set a cookie from PHP calling session_start();

I am using postgresql with a session handler, and the site is finished, and works fine for all IE users, but nothing about the state is stored for Netscape users... That is not a configuration problem in my opinion.

http://www.employee-testing.com/version.php (I will take this down in about 2 days, but if you want to look)... this one doesn't set cookies in netscape, but

I am trying to pass the cookie from https://secure.employee-testing.com to http://www.employee-testing.com; however, none of the cookies every get set in either case for netscape, and it works fine in IE...

http://www.eddies-cafe.com/version.php does work properly in netscape...



The issue is with all of the parameters of the set cookie...

I guess the only workaround is get_browser and set_parameters if NETSCAPE to comply to the cookie standards.

Regards,

monte

{x:

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-11 23:42 UTC] sniper@php.net
The domain needs to be prefixed with a dot (e.g. '.foobar.com')

This is browser issue, nothing we can do about it.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 19:01:30 2024 UTC