I want to carry some cookies value to different subdomains like
blog.mydomain.com , profile.mydomain.com , stats.mydomain.com, etc.
Right now I am using below code to set cookies
setcookie('var_name', 'var_value', null, "/", '.mydomain.com' );
With this code, cookies set on blog.mydomain.com
available on mydomain.com
but not on other subdomain (profile.mydomain.com , stats.mydomain.com, etc.
)
Please, let me know, whats wrong with my code .