Si vemos en el manual: (en inglés, porque en español aún no actualizan esta parte)
http://www.php.net/manual/en/function.setcookie.php
Verás que la estructura de la función setcookie() es:
Código:
setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]])
Hay una tabla que explica qué es cada parámetro. Pero sobretodo interesa esto en la tabla sobre el parámetro
"domain":
Cita:
Iniciado por manual To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to
www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the spec for details.
Mira en el enlace para más detalles. Por ejemplo debes tener en cuenta que para saltar parámetros debes poner cadenas vacía si son string o ceros si son numéricos.
Saludos