Questions about this topic? Sign up to ask in the talk tab.
Difference between revisions of "Cookies/Accessing A Cookie/PHP"
From NetSec
Chantal21I (Talk | contribs) (Created page with "Use the $_COOKIE superglobal to read the cookies. Remember it can't be used to set or delete cookies, only to read them, though PHP won't shout at you if you try and set some val...") |
(No difference)
|
Latest revision as of 06:32, 19 July 2012
Use the $_COOKIE superglobal to read the cookies. Remember it can't be used to set or delete cookies, only to read them, though PHP won't shout at you if you try and set some values. Just, it won't give a damn and never set them client-side.
<syntaxhighlight lang="php"> $lover = $_COOKIE['my_lover']; </syntaxhighlight> |