I have a site orders.something.com and other site hr.something.com. My 1st question should I create different applications for these in VS 2010 or I can run it inside single application too? Secondly, if I create 2 applications how can I establish login into both system? So for example if he is logged into something.com, he is authenticated into orders.something.com as well as hr.something.com?
Thanks in advance 🙂
IMO, whether both should be different applications or not can be decided by the functionality – if both solve different concerns then you can have different applications.
Further, having different applications can give you isolation – you can scale both independently, both can have different down-times/upgrade frequency/maintenance plans. Both sites may need different SLA (service level agreements) and in such case, it does make sense to have them separate applications.
Even if they are separate applications, they can use SSO if authentication store is the same. For example, you may use integrated windows authentication. In case of ASp.NET forms authentication, you can set the authentication cookie domain to the parent domain (
something.com) and that would make the same token valid for both sub-domains.