Question

I have a Server on Azure where an MVC4 web application is hosted. On the server I have added bindings for:

company1.mysite.com
company2.mysite.com

Within mysite an Admin user has the option to define custom styles for each of the subdomains. So to check the changes have been applied successfully. If the admin changes the URL from company1.mysite.com to company2.mysite.com they are redirected back to a login page. When I then attempt to log in with the same details it seems that there is some conflict in the cookies and I am unable to find the user details.

Is there anyway that I could preserve the login details for one subdomain and allow the user to simply change the URL to see if the changes had been supplied effectively. If not is there any way I can prevent this conflict on signing on to the other subdomain?

Was it helpful?

Solution

I think cookie domain must be specified in a proper way. Please, see this link

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top