Forms Authentication across Sub-Domains on local IIS
- by Parminder
I asked this question at SO http://stackoverflow.com/questions/8278015/forms-nauthentication-across-sub-domains-on-local-iis
Now asking it here.
I know a cookie can be shared across multiple subdomains using the setting
<forms name=".ASPXAUTH" loginUrl="Login/" protection="Validation" timeout="120"
path="/" domain=".mydomain.com"/>
in Web.config. But how to replicate same thing on local machine. I am using windows 7 and IIS 7 on my laptop. So I have sites localhost.users/ for my actual site users.mysite.com
localhost.host/ for host.mysite.com and similar.