Alrighty, I am new to this but am having a ball learning.
I am trying to get cookies working on my machine. I have mySQl, PWS and PHP4 installed, and am building a shopping cart that users a sessions id to track a users input.
This the script that I have used:
if (!isset($user_id)) {
$token = md5(uniqid(rand()));
setcookie("user_id",$token,time()+86400,"/","myname.com");
What I am trying to ascertain is what should the "myname", the host corrsepond to if the server is local? Should it be localhost or what...
Sorry if this is answered elsewhere, I will look now fully. Thanks for any assistance.
Mark