开发者

Session state timeout parameter issue

开发者 https://www.devze.com 2023-02-07 06:26 出处:网络
I am trying to set the timeout parameter of session state but it doesnt time out. <sessionState mode=\"InProc\"timeout=\"1\"></sessionState>

I am trying to set the timeout parameter of session state but it doesnt time out.

<sessionState mode="InProc"  timeout="1"></sessionState>

I am refreshing the page after 1 minute and I still the 开发者_Python百科session state value. Why?


Use this way (if in case you are using FA as well)

<system.web>
    <authentication mode="Forms">
          <forms timeout="1"/>
    </authentication>

    <sessionState timeout="1"  />
</system.web>


<system.web>
    <authentication mode="Forms">
          <forms timeout="1"/>
    </authentication>

    <sessionState timeout="1"  />
</system.web>

you welcome


The MSDN says it shouldn't be lower then 4 minutes. Refer to the following it might help:

http://justgeeks.blogspot.com/2008/07/aspnet-session-timeouts.html

0

精彩评论

暂无评论...
验证码 换一张
取 消