Tuesday, November 10, 2009

Passing Cookies from one domain to another....

There is no easy way to pass cookies from one domain to another but here is a quick run down of how to do it.

On the page that you want to pass the cookie to post to the domain that you want to get the cookie from. In this post you need to read for a response. On the side that is passing to domain you need to create a page, that has a javascript function that looks up the value of that cookie. You CANNOT do this through server side code because it will give you the value of that cookie of the first domain. You also cannot create a web service to do this, because they are stateless and do not maintain cookies or sessions. I will post my code later, let me get this to work first.

-Jus

No comments:

Post a Comment