HYBR HA Environment Shared Cookie Authentication Configuration - Session Time Out issue Solution

HYBR HA Environment Shared Cookie Authentication Configuration - Session Time Out issue Solution

Why this is needed?
In Hybr HA Environments, If requests from customer are distributed between 2 machines the cookie from one machine is not authenticated by another machine hence caused the Session time out error in the admin and tenant portals often.

In order to resolve this, we have introduced shared cookie authentication which will store the encryption algorithm and secret key used for encrypting the cookies.

Configuration to be done to enable shared cookie authentication
  1. Set the appsetting IsSharedCookieAuthenticationEnabled in the web.config file to true.
  2. Configure the network file share which is accessible from the Hybr HA machines.
  3. Update the network share location in the web.config file in the appsetting
  4. SharedCookieLocation in the format \HybrApp01\keyDirectory
  5. Try to load the Hybr Portal. the portal should load without any issues.
  6. If the network share is not accessible from any of hybr HA machines, it will throw error on loading the portals. Make sure, the network share location is accessible from the HYbr HA machines.
  7. Once the portal is loaded, you should be able to see a file generated in the network share location which has the information about shared cookie authentication.