How would I make cookie that can be accesed by any website in javascript? Or how can I make a cookie that can be accesed by any website that has my domain name?
Asked
Active
Viewed 518 times
1
-
[Share cookie between subdomain and domain](http://stackoverflow.com/questions/18492576/share-cookie-between-subdomain-and-domain) – Jonathan Lonowski Oct 25 '15 at 02:32
2 Answers
2
Unless you have a specific reason to use cookies, I would use localStorage. It is easy to use and can either be accessed by the domain name or the web browsers themselves. Also localStorage has a bigger memory then cookies.

jwiz21
- 38
- 4