setcookie("product", $product, mktime (0, 0, 0, 12, 31, 2015))
the mktime().. how do i change that, can you tell me what each of those numbers is.. like day, month, year blah blah.
Look at the manual, it will tell you straight out.
okay what can i use if i want them to expire in about an hour, or 30 minutes, somethin to that extent? would i use localtime() ?
setcookie("product", $product,time()+3600);
so 1800 for 30 minutes right? and after 30 minutes it will expire. right?
yeah, absolutely coz it is measured in seconds. so, 1 hour will be 1 60 60.