How to update the session mode from the other modes to InProc at the replicate Identify instance


Question:

Given that you have an Identify instance T1 which is deployed on both webserver Web01 and  webserver Web02 and its current session mode is SQLServer state, you need to do the following steps to apply the InProc.

As default, the default directory for the tenants is at: C:\Program Files\Safewhere\Identify\Tenants\ (If you customize this, please replace this by your custom directory).

Answer:

On the webserver Web01, you can do:

  1. Open the CMD prompt from the Start\Run.
  2. Execute command: CD C:\Windows\Microsoft.NET\Framework\v4.0.30319
  3. Execute command: aspnet_regiis.exe -pdf “system.web/sessionState” “C:\Program Files\Safewhere\Identify\Tenants\#yourTenantT1\admin” (Note: you need to replace #yourTenantT1 by your own tenant)
  4. Access the web.config in the directory: C:\Program Files\Safewhere\Identify\Tenants\#yourTenantT1\admin, and update its -sessionState section to:
  5. Execute command: aspnet_regiis.exe -pdf “system.web/sessionState” “C:\Program Files\Safewhere\Identify\Tenants\#yourTenantT1\runtime” (Note: you need to replace #yourTenantT1 by your own tenant)
  6. Access the web.config in the directory: C:\Program Files\Safewhere\Identify\Tenants\#yourTenantT1\runtime, and update its -sessionState section to:
  7. Open IIS and reset the application pool of the Identify instance T1.
  8. Access Identify Admin of T1 directly on the webserver Web01 to ensure login works well.

Repeat the above steps for the Identify instance T1  on the webserver Web02.

After verifying accessibility of the Identify instance T1  on both servers successfully, you should update the sessionStateMode setting of IdentifyTenant database -> Tenant table -> XmlConfiguration column to InProc so that it will be used even when you upgrade your Identify instance. The steps are:

  1.  Access the IdentifyTenant database, select [XmlConfiguration] of the Identify instance T1 using the SQL script below (Note: you need to replace #TenantT1 by your own tenant name)

    Here is a sample of the collected XmlConfiguration:
  2. Update the sessionStateMode from SQLServer to InProc as well as sqlStateServerConnectionString to empty (Note: you need to replace #TenantT1 by your own tenant name as well as use the collected XmlConfiguration above)
Was this helpful ?Good Somewhat Bad