zoukankan      html  css  js  c++  java
  • Aspnet,Aspnet MVC sessionState StateServer 多IIS共享StateServer

    <!--Timeout: 180 minutes-->
    <system.web>
       ...
        <sessionState cookieless="true" timeout="180" stateConnectionString="tcpip=127.0.0.1:42424" mode="StateServer" />
      ...
      </system.web>
    

      

    若允许远程机器访问本机的 ASP.NET State Service

    修改注册表:

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\aspnet_state\Parameters]
    "Port"=dword:0000a5b8
    "AllowRemoteConnection"=dword:00000001
    

      

    AllowRemoteConnection修改为1,修改后,Log off;
    若本机名为myPC,其他机上的asp.net程序将
    stateConnectionString="tcpip=127.0.0.1:42424"改为
    stateConnectionString="tcpip=myPC:42424"  即可访问此StateServer.
    
    
    Note:确保开启windows的 ASP.NET State Service服务。
    
    
    
    
  • 相关阅读:
    uva 11549
    uva 11078
    uva 1335
    uva 1267
    uva 11520
    uva 12124
    uva 10795 A Different Task
    ACM俱乐部算法基础练习赛(1)
    【BZOJ1010】玩具装箱
    【BZOJ1901】Dynamic Rankings
  • 原文地址:https://www.cnblogs.com/wucg/p/2227303.html
Copyright © 2011-2022 走看看