newnomad newnomad - 4 years ago 170
Javascript Question

setting cross-subdomain cookie with javascript

How should I add domain support to these functions? I want to achieve that is declared as domain, so that the cookies can be read across all subdomains of the In its current form since domain is not set, it can only be read from

Answer Source

Here is a link on how to share cookies amongst a domain:

It involves setting the domain attribute of the cookie string like:

document.cookie = "myValue=5;path=/;";

This cookie should now be accessible to all sub domains of like

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download