From:             [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:      4.1.2
PHP Bug Type:     Feature/Change Request
Bug description:  Please use reception of *any* cookie to signal PHP that cookies are 
enabled

This is just a simple request. When you visit a PHP site using sessions, on
the first page view the PHPSESSID appears in all URLs, because at that
point PHP supposedly does not know whether cookies are enabled. However,
if the site had, on an earlier visit, set a long-term cookie (with some
dummy value), then now on my first page-view of a session, the PHP site
should be able to know that cookies are enabled, since this one long-term
cookie would have been sent.

Currently, PHP doesn't allow this -- it only checks for the PHPSESSID
cookie. I think it would be an easy change, and make many people happy, to
simply have it check whether any cookie was received by the server, and if
so then take that as a sign that cookies are enabled and thus don't modify
the links on the page. Perhaps this could be an option in the php.ini if
you were worried it is not safe enough.

Thanks for your time,
Matt
-- 
Edit bug report at http://bugs.php.net/?id=16056&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16056&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16056&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16056&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16056&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16056&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16056&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16056&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16056&r=submittedtwice

Reply via email to