It looks like you are new here. I'll call you "mac9".
Check out the setcookie
API.
name
value
expire
(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 https
httpOnly
(when set to true
, Javascript can't access this cookie)