How to set a cookie for another domain

后端 未结 11 1900
一向
一向 2020-11-22 07:21

Say I have a website called a.com, and when a specific page of this site is loaded, say page link, I like to set a cookie for another site called b.com

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 07:43

    Probaly you can use Iframe for this. Facebook probably uses this technique. You can read more on this here. Stackoverflow uses similar technique, but with HTML5 local storage, more on this on their blog

提交回复
热议问题