-3

Every time I log in for first time my application session is null
how to maintain session for one hour or day?
Need suggestion please waiting for the answer..

4

1 回答 1

1

To maintains session timeouts add the following entry in web.config

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

The above code example sets the timeout session attribute to 30 minutes in the Web.config file.

于 2013-09-16T12:25:58.863 回答