How to read cookie from different domain?
Posted in Help the coder! on Sep 1, 2009 at 21:33 IST (11 months ago). Subscribe to this post
Email
Showing comments 1 to 2 of total 2 on page 1 of 1
Post replyShowing comments 1 to 2 of total 2 on page 1 of 1
« Previous1Next »
sonataRank: 77
I have cookies for the domain .forum.mywebsite.com and for .mywebsite.com.
Is it possible to read the cookie for the .mywebsite.com domain with javascript from the forum.mywebsite.com location?
Posted by sonata on Tuesday, September 1, 2009, 9:33 pm
xtrmprgrmrRank: 7
You can set the domain which has access to a given cookie via adding a variable
domain={domainname};
This domain as well as any of its subdomains is allowed access to the cookie (source: MDC, MSDN).
Posted by xtrmprgrmr on Tuesday, September 1, 2009, 10:15 pm
Pages: « Previous1Next »