ID:               16056
 Updated by:       [EMAIL PROTECTED]
-Reported By:      [EMAIL PROTECTED]
+Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Windows 2000
 PHP Version:      4.1.2
 New Comment:

fixed my email address.


Previous Comments:
------------------------------------------------------------------------

[2002-03-14 02:14:02] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=16056&edit=1

Reply via email to