Cookies - set across multiple domains

后端 未结 5 1619
梦如初夏
梦如初夏 2021-02-01 22:01

My company has a setup as follows:

  • subdomain1.domain1.com
  • subdomain2.domain1.com
  • subdomain3.domain1.com
  • subdomain4.domain1.com
5条回答
  •  死守一世寂寞
    2021-02-01 22:31

    Create a common domain specifically for your cookies and use it as a getter/setter API.

    http://cookie.domain.com/set/domain1
    http://cookie.domain.com/get/domain1
    
    http://cookie.domain.com/set/domain2
    http://cookie.domain.com/get/domain2
    

    and so on.

提交回复
热议问题