JavaScript domain read cookie from subdomain

那年仲夏 提交于 2019-12-10 15:14:48

问题


I have a simple question - is there any way to read subdomain cookie on main domain by JavaScript? For example: I set cookie 'hello' with value '2' in subdomain yeah.something.com and after that I want to read it on something.com. I tried to find answer for that but I found only information how to set cookie on subdomain by creating it on domain.

来源:https://stackoverflow.com/questions/15903650/javascript-domain-read-cookie-from-subdomain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!