From:             mshaffer at mshaffer dot com
Operating system: Linux
PHP version:      4.3.0
PHP Bug Type:     Session related
Bug description:  auto cookie set in Netscape client doesn't work

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:
-- 
Edit bug report at http://bugs.php.net/?id=22653&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22653&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22653&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22653&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22653&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22653&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22653&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22653&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22653&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22653&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22653&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22653&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22653&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22653&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22653&r=gnused

Reply via email to