I am trying to create a website with subdomains in asp.net mvc. But I am not sure how to do this. When setting up this new solution in visual studio is it best to have a different project for each subdomain or have one project? There are obviously some immediate advantages to this such as publishing updates to one subdomain without touching the others. Here is the specification:
1)I have many applications , each have their own subdomain, e.g. App1, App2, App3. The user will login through the Main domain with login page, and this authentication will be passed down to the applications.
2) I need the domain to authenticate the user and pass the authentication to the subdomain. The subdomain will only allow access to authenticated users. ASP.NET allows the authentication to be passed to subdomains. What I need to know is how to set the projects so that the subdomian knows that the authentication is being passed this way.
3) I've decided to go down the subdomain route.
http://App1.domain.com/ http://App12.domain.com/
4)I'm also thinking about reusable code. Is there any way to share masterpage,usercontrols etc over the three different subdomains?