I have a website, www.example.com
, and would like to use a few cookies from this on another sub-domain: www.abc.example.com
.
Can JavaScript read a cookie from a different subdomain? Meaning, if my html page is running on www.example.com
, can I get the cookies from this page to be used in www.abc.example.com
?
You would be able to get these details from a simple search I believe. Anyway check this link and see you got what you need.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.