Session timeout

I have a problem in creating Session. Session.Timeout doesn't work. This is my code Session["UID"] = Uid; Session["UserName"] = UserName; Session.Timeout = 10; // ?not responding

Session.Timeout occurs after 3 or 4 minutes

Answers


You should set session timeout in the web.config file like this:

<sessionState
   mode="InProc"
   cookieless="AutoDetect"
   timeout="10" />

Taken from here: MSDN on the session state element in web.config


try b making changes in your web.config file instead of the cs file.

<configuration>
  <system.web>
    <sessionState 
      mode="InProc"
      cookieless="true"
      timeout="30" />
  </system.web>
</configuration>

read more about it at MSDN


Need Your Help

C/C++ source code visualization?

c++ c visualization

Basically I want tools which generate source code visualization like: