I have two websites hosted on the same server (IIS6 on Windows Server 2003 R2). URL for the first website is www.domainname.com URL for the second website is my.domainname.com/website2 where "website2" is a virtual directory under "my" website on the same server. I have configured Single Sign On using forms authentication on both sites and it was working very well. After I moved the first website to another server (IIS7 - Windows Server 2008 R2) SSO stopped working (both ways).
- "machineKey" and "forms" values are identical on both sites (see below).
- I can see that the ticket is passed from the server logs.
- I get the "Forms authentication failed for the request. Reason: The ticket supplied was invalid." error on the Event Viewer.
- both sites use .net 4
------- Configuration start
<machineKey validationKey="key1" decryptionKey="key2" decryption="3DES" validation="SHA1" />
<authentication mode="Forms">
<forms requireSSL="true" name="domainnameAuth" domain=".domainname.com" loginUrl="login.aspx" timeout="20" protection="All" path="/" />
</authentication>
What am I missing here? Any help on how to debug this situation is greatly appreciated.