Changes

Jump to: navigation, search

PHP and Cookies - Creating, Reading and Writing

269 bytes added, 14:44, 6 June 2007
no edit summary
Cookies essentially provide a mechanism to store small pieces of data on the computer systems of the visitors to your site. This enables you to maintain the state of a user's visit to your site so that you can track their movement through though the site, or to store information such as their user name and address after they have entered it on one page so that they don't have to keep re-entering it on different pages.
 
Another option for maintaing state is to use PHP Sessions (see [[Understanding PHP Sessions]] for more information). Cookies and sessions differ in important ways, and which to use depends on your requirements.
 
== The Difference Between Cookies and PHP Sessions ==
 
 
== The Structure of a Cookie ==

Navigation menu