0

I have one web application running two different domain like example.com and test.example.com.I have created a cookie for example.com.I have seen in Firefox that the browser create a folder named "example.com" which contain the cookie .But when I go through test.example.com it create a new cookie folder named "test.example.com" .Does it possible to get the cookie of "example.com" folder in "test.example.com" folder (I mean when I go through "test.example.com" if the cookie exists in "example.com"). Please let me know if there is any way.Thanks in advanced.

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
  • You mean through the file system? This is not clear at all. – lc. Jun 17 '13 at 14:27
  • possible duplicate of [Sharing cookies across different domains and different applications (classic ASP and ASP.NET)](http://stackoverflow.com/questions/4781353/sharing-cookies-across-different-domains-and-different-applications-classic-asp) – Matt Wilko Jun 17 '13 at 14:35

1 Answers1

1

You can do the other way around. Create the test.example.com cookie using the .example.com domain.

see: Can subdomain.example.com set a cookie that can be read by example.com?

Community
  • 1
  • 1
basher
  • 2,381
  • 1
  • 23
  • 34