PHP Tutorial – COOKIES / setcookie

In this tutorial I briefly explain what a Cookie is and how you can set a cookie….
I explain what the different parameters are of setting a cookie and why and when you should change the different settings..
You will need to change some settings on your hosts file if you are running apache as Localhost as cookies do not function 100% without these changes

source