I created two web applications "First" and "second" using session mode sql server to share session from one application to other application. I used following web.config in both applications
<sessionState mode="SQLServer" cookieless="false" timeout="20"
sqlConnectionString="Server=test\SQLEXPRESS;user id=sa;password=xxx;Application Name=MVC"/>
<machineKey validationKey="someKey" decryptionKey="someOtherKey" validation="SHA1" decryption="AES" />
Finally I hosted two applications in same IIS, its working fine session is sharing. But I hosted first application in one web server and second application another IIS the session is not sharing.
Anyone experienced on the session sharing on different application. please share your thoughts