I have 2 ASP.NET applications on the same machine in the same application pool using the same "machineKey validationKey decryptionKey".
They are both using "form" authentication and both have the same cookie name.
If I login to site 1 "test1.test.com" and then navigate to site 2 "test2.test.com" then the httpcontext on site 2 "test2.test.com" is not the same user as it was on site 1.
Do I need to manually pass the "auth" and "role" cookies to site 2?
If so, how?
Session- Sergey LitvinovHttpContextitself is tightly connected with processing of current request. It has Request, Response, and other properties that don't have any sense on another sites as they will have totally different requests. Session can be shared between application. Signed user also can be shared with the same machineKey, so it should be enough for your needs. But not theHttpContextitself. - Sergey Litvinov