php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34573 features.cookies needs a rewrite to de-emphasise register globals
Submitted: 2005-09-21 07:33 UTC Modified: 2005-09-21 10:24 UTC
From: phpbugs-david at tulloh dot id dot au Assigned: Derek (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2005-09-21 07:33 UTC] phpbugs-david at tulloh dot id dot au
Description:
------------
The cookie feature page (http://php.net/manual/en/features.cookies.php) is written to emphasise the register globals technique of dealing with cookies.  The newer $_COOKIE variable is mentioned, but in less detail than using register globals and setcookie().  The page should be updated to switch this emphasis and discourage the use of register globals.

The following link to the $_COOKIE section of the manual should also be included somewhere.
http://php.net/manual/en/reserved.variables.php#reserved.variables.cookies


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-21 10:24 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"Any cookies sent to you from the client will automatically be included into a $_COOKIE auto-global array if variables_order  contains "C".
...
Depending on register_globals, regular PHP variables can be created from cookies. However it's not recommended to rely on them as this feature is often turned off for the sake of security."
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 11 23:00:01 2025 UTC