Using Cookies with PHP
Cookies allow the webmaster to store information about the site visitor on their computer to be accessed again the next time they visit. One common use of cookies is to store your username and password on your computer so you don't need to login again each time you visit a website. Cookies can also store other things such as your name, last visit, shopping cart contents, etc.
The main difference between a cookie and a session is that a cookie is stored on your computer, and a session is not. Although cookies have been...