I have two sites:
- mydomain.com
- sub.mydomain.com
When I use Chrome or Firefox, I can independently connect to each website even at the same time.
The problem with Internet Explorer (I tested 7, 8, 9, 10).
When I enter the site of the parent domain, when I try to log into the subdomain, it seems to be logging in, but returning to the login page. All login verification works well if I enter the wrong password.
I do not want the login to be common to domains.
Here is an example of the web.config part for authentication, it is the same for both sites.
<authentication mode="Forms">
<forms loginUrl="~/Login" timeout="2880" defaultUrl="/" />
</authentication>
The only way to have a login that works on both sites is in IE (on the dev toolbar) to select cache → clear session cookies.
, , URL- .