sessionTimeout

  • Thread starter Thread starter cmrchs
  • Start date Start date
C

cmrchs

Hi,

how can I set the sessionTimeout at runtime ? (so not using the value in web.config)


is the sessionTimeout only used when the sessionMode is 'InProc' ? or as well when mode = 'StateServer' or 'SQLServer' ?

thanks

Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
you can set the session timeout programatically by

HttpContext.Current.Session.Timeout = 20
The timeout is also applied in StateServer or SQLServer mode.

Chris C said:
Hi,

how can I set the sessionTimeout at runtime ? (so not using the value in web.config)


is the sessionTimeout only used when the sessionMode is 'InProc' ? or as
well when mode = 'StateServer' or 'SQLServer' ?
thanks

Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 
Back
Top