Base solution for your next web application
Open Closed

Application cookie from subdomain login #1177


User avatar
0
ellfish created

Hi there,

My tenant logs in from http://[tenancyname].mydomain.com. Their browser receives a cookie for the tenancyname subdomain. Is it possible to override this so they receive a cookie for the parent domain (.mydomain.com)? See example 2 here: <a class="postlink" href="http://www.codeguru.com/csharp/csharp/cs_internet/article.php/c19417/Sharing-Cookies-Across-Domains.htm">http://www.codeguru.com/csharp/csharp/c ... omains.htm</a>

Currently their requests to the parent domain are not authorised because the cookie is only valid for the subdomain.

Thanks!


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    I don't know if it's possible to share cookies between subdomains. As I know, it's controlled by browser, not server. But if you can find a way in ASP.NET MVC, it should work within AspNet Zero.