Implementing a custom SessionIDManager

前端 未结 1 1181
醉梦人生
醉梦人生 2021-01-13 18:50

I\'m trying to implement a custom SessionIDManager very similar this example.

I\'m putting this in the web.config similar to how they showed in the example:

相关标签:
1条回答
  • 2021-01-13 19:22

    In fact I think there's a bug in the documentation. You don't need to add it to the <httpModules> section but to the <sessionState> section as illustrated here:

    <sessionState
        Mode="InProc"
        stateConnectionString="tcp=127.0.0.1:42424"
        stateNetworkTimeout="10"
        sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI"
        sqlCommandTimeout="30"
        customProvider=""
        cookieless="false"
        regenerateExpiredSessionId="false"
        timeout="20"
        sessionIDManagerType="Your.ID.Manager.Type, CustomAssemblyNameInBinFolder"
    />
    
    0 讨论(0)
提交回复
热议问题