Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is unit of session timeout in asp.net

Tags:

asp.net

Can any body please tell me unit of session time which we specify in ASP.Net Web.config in sessionstate,

Is it in minute,second or miliseconds?

Thanks

like image 869
tina Avatar asked Jan 04 '11 09:01

tina


People also ask

What is session timeout?

Session timeout represents the event occuring when a user does not perform any action on a web site during an interval (defined by a web server). The event, on the server side, changes the status of the user session to 'invalid' (ie.

How long should a session timeout be?

Typical session timeouts are 15- to 45-minute durations depending on the sensitivity of the data that may be exposed.

Where do you generally specify the session timeout?

In ASP.NET we can set the session timeout in the web. config file.


2 Answers

<sessionState      timeout="number of minutes">   <sessionState/> 
like image 138
Kimtho6 Avatar answered Oct 03 '22 01:10

Kimtho6


HttpSessionState.Timeout Property

Gets and sets the amount of time, in minutes, allowed between requests before the session-state provider terminates the session.

<configuration>   <system.web>     <sessionState        mode="InProc"       cookieless="true"       timeout="30" />   </system.web> </configuration> 
like image 42
Ralf de Kleine Avatar answered Oct 03 '22 00:10

Ralf de Kleine