Developer404
Developer404

Reputation: 5962

How to set Timeout value for Session

Wat is the default value for session timout? And how and where can I set the timeout value for session??? Plz, tell me in detail

Upvotes: 0

Views: 439

Answers (3)

sathish
sathish

Reputation: 6765

default 20 minutes which is reset with each request

Include this in you web.config file:

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

REad this forum for more:

http://forums.asp.net/t/1283350.aspx

Upvotes: 1

Yuriy Faktorovich
Yuriy Faktorovich

Reputation: 68667

The default value is 20 minutes. You can set it in the sessionState's timeout attribute.

Upvotes: 0

Andy West
Andy West

Reputation: 12499

In the web.config.

<sessionState timeout="number of minutes" ...>
    <providers>...</providers>
</sessionState>

The default is 20 minutes.

Upvotes: 1

Related Questions