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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

visual effects on a web-page 4
x 1
Asp.Net 1
On The Fly 1
login fail for User 'databaseName\ASPNET' 2
Progressbar Oject code for File Upload HTTPModule ??? 3
Session object gone! 3
interrupt the page load-cycle 1

Back
Top