Recipe 8.2. Reading Cookie Values8.2.1. ProblemYou want to read 8.2.2. SolutionLook in the $_COOKIE Reading a cookie value
8.2.3. DiscussionA cookie's value isn't available in $_COOKIE during the request in which the cookie is set. In other words, the When a browser sends a cookie back to the server, it sends only the value. You can't access the cookie's domain, path, expiration time, or secure status through $_COOKIE because the browser doesn't send that to the server. To print the names and values of all cookies sent in a particular request, loop through the $_COOKIE array, as in Example 8-6. Reading all cookie values
8.2.4. See AlsoRecipe 8.1 shows how to set cookies; Recipe 8.3 shows how to delete cookies; Recipe 8.12 explains output buffering; Recipe 9.15 for information on register_globals. |
Wednesday, January 20, 2010
Recipe 8.2. Reading Cookie Values
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment