i am doing website with 2 domains:
a) mysite.com
b) ads.mysite.com
user can login on mysite.com and i send him a per-session cookie [expires when the browser is closed]. then user click a link to go to ads.mysite.com and this ads should read cookie value set at mysite.com.
watch this now: index.php in ads just outputs cookie value. but it i come over a link from mysite.com to ads.mysite.com cookie is not there. if i refresh my browser, cookie is still not there. but if i go to address line in browser and press enter [this reloads the page] cookie is there.
what am i doing wrong?