In this example I have a couple of sites.
Each of the above sites all have the same identical machinekey
. Also this example a.site.com and b.site.com exist on server1 and c.site.com exists on server 2.
Using forms authentication i'm able to navigate between a.site.com and b.site.com without an issue, only authenticating once. However, even though c.site.com has the same machinekey
i'm unable to navigate to c.site.com and maintain being logged in.
I'm able to fix this using a domain cookie. But this isnt the ideal solution for a lot of reasons.
How do you use a machinekey across servers without a domain cookie?
They are in the same domain. The sites are also the same exact code, just multple IIS pages. The only difference is the sites sit on different servers
Thanks!
Edit for web.config
<machineKey decryptionKey="encryptkey" validationKey="encryptkey" validation="SHA1" decryption="AES"/>
<customErrors mode="Off" defaultRedirect="noaccess.aspx" />
<authentication mode="Forms">
<forms timeout="120" domain=".site.com" cookieless="UseCookies" enableCrossAppRedirects="true" name=".ASPXAUTH" loginUrl="default.aspx" protection="All" path="/" />
</authentication>
And I do mean i go publish a.site.com - server1 : publsh b.site.com -server1 : publish - c.site.com server2 no change in code. Yes i removed the key, but i'm positive the key was created correctly.