How do I transfer cookies from one domain to another?

Hi,
How do I transfer cookies from one domain to another?
ie.
my domain is http://blah.com, but the user has to logon to https://blah.appspot.com via ajax because google app engine does not have domain specific ssl support yet. So if the user cookies are in blah.appspot.com upon logon, how do i transfer cookies to http://blah.com?

Thanks
Jamie
jamie_lynnAsked:
Who is Participating?
 
Gurvinder Pal SinghConnect With a Mentor Commented:
I don't think you can transfer cookies across domains.
you need to save the cookies to the sever database for a user and then fetch it from the other domain.
0
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
@gurvinder372 is right, you can't "transfer" cookies across domains.  Storing them in a common database is about the only way.
0
 
jamie_lynnAuthor Commented:
Thanks guys. I thought maybe I can use iframes, but I guess storing them in the database and fetching them from the other domain works
0
 
Dave BaldwinFixer of ProblemsCommented:
Sorry, browsers won't send you cookies from another domain.
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.