1

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?

Mason Wright
  • 310
  • 3
  • 10

2 Answers2

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
0

You can't. That would violate browser security.

maxTrialfire
  • 507
  • 3
  • 12