Setting and Access Cookies from Main Domain to Sub-Domain
<p>I got  a peculiar situation and spent lots of time in investigating but could not success.</p>

<p>I have a domain like www.A where on home page I'm running a Javascript to access a PHP script from another subdomain dev.A. This PHP script needs to set a cookie and then I want to access same cookie in another script which I'm accessing again under www.A.</p>

<p>Kindly help in achieving this.
Regards
Mohtashim</p>