Many thanks to PHP Magazine for pointing out this new article from PHPFreaks: PHP: Cookies, A Quick Glance.
Noticed a new tutorial on phpfreaks this morning, titled "Cookies a Quick Glance" - "Sometimes it becomes necessary to track certain user details like (No. Of Visits, names, last visit, etc). The client machine stores such information and sends it to the web server whenever there is a request. Cookies data are sent along with the HTTP headers"
The article gives you a good overview of what cookies are, what they can be used for, and, of course, some code examples to show you how. Thankfully, they also give a little time to some common problems that some coders face when dealing with cookies (such as the infamous "headers already sent" issue). The code that they give is a simple login system, something I know most new coders to the language are looking for.




