Losing Session State with ASP.NET/SQL Server

后端 未结 3 461
半阙折子戏
半阙折子戏 2020-12-02 19:18

I have a ASP.NET MVC workflow configured as two websites managed by a load balancer. The websites use Sql Server as the session state provider and have authentication switch

3条回答
  •  旧巷少年郎
    2020-12-02 19:54

    Sessions have (web) application scope. See if this MS KB helps.

    Update: Interesting down vote. Perhaps my suggestion needs more clarity.

    In addition to matching machine keys, you also have to match the IIS configuration for sites (so it's the "same application" (application path) in IIS.

提交回复
热议问题