It looks like you are new here. I'll call you "spots12".
Check out the setcookie API.
namevalueexpire (time at which cookie expires. Set to 0 for cookie to expire at end of session.)domain (the subdomain for which this cookie is available (e.g., www.cis.gvsu.edu)secure (only sent when using httpshttpOnly (when set to true, Javascript can't access this cookie)