set cookies in a php site and read them in an asp site

If cookies are stored in the user's PC how can I set a cookie when he is visting

myphpsite.com

then when he visitis

myaspsite.com

retrieve the cookie

Thx
robrodpAsked:
Who is Participating?
 
GaryCommented:
Cookies are per site - siteA.com cannot read siteB.com's cookie for security reasons.
To pass the data to siteB from siteA you would need to visit siteA, get the cookie data and pass it onto siteB in the url for example.
0
 
robrodpAuthor Commented:
Thats  what I am doing. I was just confirming that this cross sites issue was not viable.

Thx for the prompt response
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.