Bug #16056 Updated: Please use reception of *any* cookie to signal PHP that cookies are enabled
| From: | mattr at ugcs dot caltech dot edu | Date: | Thu, 14 Mar 2002 07:15:02 +0000 |
| Subject: | Bug #16056 Updated: Please use reception of *any* cookie to signal PHP that cookies are enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2450@lists.php.net to get a copy of this message | ||
ID: 16056
Updated by: mattr@ugcs.caltech.edu
-Reported By: mattr0@ugcs.caltech.edu
+Reported By: mattr@ugcs.caltech.edu
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] mattr@ugcs.caltech.edu
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