![]() |
|
? |
![]() PHP FAQ PHP Articles PHP Help Bulletin Board PHP Manual (NEW!) First Time PHP'ers Help with programming Sql assignment help PHP Homework Help C# Help
|
? |
|
|||||||||||||||||||||||||
?Reply To This Message | ||||||||||||||||||||||||||||
?Your Name: | ||||||||||||||||||||||||||||
?Your Email: | ||||||||||||||||||||||||||||
?Subject: | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
Email replies to this thread, to the address above. | ||||||||||||||||||||||||||||
??wrote: > > from the manual > > > Once the cookies have been set, they can be accessed on the > next page load with the $_COOKIE or $HTTP_COOKIE_VARS arrays. > Note, autoglobals such as $_COOKIE became available in PHP > 4.1.0. $HTTP_COOKIE_VARS has existed since PHP 3. Cookie > values also exist in $_REQUEST. > > Note: If the PHP directive register_globals is set to on then > cookie values will also be made into variables. In our > examples below, $TextCookie will exist. It's recommended to > use $_COOKIE. > > Common Pitfalls: > > > Cookies will not become visible until the next loading of a > page that the cookie should be visible for. To test if a > cookie was successfully set, check for the cookie on a next > loading page before the cookie expires. Expire time is set > via the expire parameter. A nice way to debug the existence > of cookies is by simply calling print_r($_COOKIE);. ">??![]() |