asp.net - MachineKey Relationship in subdomains. Across Servers possible? -


in example have couple of sites.

  • a.site.com
  • b.site.com
  • c.site.com
  • each of above sites have same identical machinekey. example a.site.com , b.site.com exist on server1 , c.site.com exists on server 2.

    using forms authentication i'm able navigate between a.site.com , b.site.com without issue, authenticating once. however, though c.site.com has same machinekey i'm unable navigate c.site.com , maintain being logged in.

    i'm able fix using domain cookie. isnt ideal solution lot of reasons.

    how use machinekey across servers without domain cookie?

    they in same domain. sites same exact code, multple iis pages. difference sites sit on different servers

    thanks!

    edit 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 mean go publish a.site.com - server1 : publsh b.site.com -server1 : publish - c.site.com server2 no change in code. yes removed key, i'm positive key created correctly.

    you need use shared session state mechanism such state server or sql server session state shared servers in web farm.


    Comments

    Popular posts from this blog

    Why does Ruby on Rails generate add a blank line to the end of a file? -

    keyboard - Smiles and long press feature in Android -

    node.js - Bad Request - node js ajax post -