4 ms·
That's not true at all. Try document.cookie = 'a=b' in a browser console on non-www domain and then do document.cookie on the www variant. You'll see it not s
by megous 7y ago
That's not true at all.
Try document.cookie = 'a=b' in a browser console on non-www domain and then do document.cookie on the www variant.
You'll see it not set. (The cookie will only be accessible on subdomains if you include the domain explicitly, like document.cookie = 'a=b;domain=toplevel.domain')
- Jwarder 7y agoMy understanding that doesn't work on old versions of IE.