<! -- Timeout: 180 minutes --> <system. web>... <sessionstate cookieless = "true" timeout = "180" stateconnectionstring = "TCPIP = 127.0.0.1: 42424" mode = "StateServer"/>... </system. web>
If remote machines are allowed to access the ASP. NET State service of the Local Machine
Modify the registry:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ aspnet_state \ Parameters] "Port" = DWORD: Export a5b8 "allowremoteconnection" = DWORD: 00000001
Modify allowremoteconnection to 1. After modification, log off;
If the name of the local machine is mypc and the name of Asp.net on another machine isProgramSet
Change stateconnectionstring = "TCPIP = 127.0.0.1: 42424"
Stateconnectionstring = "TCPIP = mypc: 42424" to access this StateServer.
Note: Make sure to enable the ASP. NET State Service for Windows.