# Cookies! Setting cookies from site A for site B

**URL:** <https://forum.kirupa.com/t/cookies-setting-cookies-from-site-a-for-site-b/206519>\
**Category:** Uncategorized\
**Created:** [November 9, 2006, 12:11am UTC](https://forum.kirupa.com/t/cookies-setting-cookies-from-site-a-for-site-b/206519 "2006-11-09T00:11:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjmancini](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jjmancini](https://forum.kirupa.com/u/jjmancini)\
**Post date:** [November 9, 2006, 12:11am UTC](https://forum.kirupa.com/t/cookies-setting-cookies-from-site-a-for-site-b/206519/1 "2006-11-09T00:11:50Z")

</div>

Hey Everyone!!!

Here is the problem I am having. Say you have two sites. Site A and site B. Site A needs to set a cookie via javascript of the domain of site B. The javascript that needs to do this is on site A, but will be called via a javascript include on site B.

Here is another example:

Site [A=google.com](http://A=google.com)  
Site B =[flickr.com](http://flickr.com)

When a user visits [google.com](http://google.com), a cookie needs to be given to the user that [flickr.com](http://flickr.com) can read.

All you javascript gurus out there! Let me know if you have any thoughts!!!  
Thanks!
