i have asp.net web application in witch want put timeout (for user dosen't time). test use 3 secondes timeout. in web.config :
<sessionstate mode="stateserver" statenetworktimeout="3"></sessionstate> i following error run app:
cannot request session state in session state server.
i can't find relevante case...
i tried put inproc in mode="" dosen't timeout anything.
looking @ this, you're trying use state server , set idle time between web server , state server. configure web server use state server, must configure state server. go state server , run:
systemroot\microsoft.net\framework\versionnumber\aspnet_state.exe
this install asp.net state service. in sessionstate element in web config need set stateconnectionstring attibute well.
<configuration> <system.web> <sessionstate mode="stateserver" stateconnectionstring="tcpip=samplestateserver:42424" cookieless="false" timeout="20" statenetworktimeout="3"/> </system.web> </configuration> you have 2 "timeouts" here. "timeout" attribute how long user can keep connection webserver. statenetworktimeout how long webserver stateserver connection can idle. default 10 seconds.
hope helps.
ref: https://msdn.microsoft.com/en-us/library/ms178586(v=vs.100).aspx
/ip
Comments
Post a Comment