By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,581 Members | 2,007 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,581 IT Pros & Developers. It's quick & easy.

Increase session timeouts

P: n/a
Is it possible for me to increase the time before a session times out and do
it in the global or webconfig files ?

In asp I used to put session.timeout = whatever in the session start event
of the global asa file.

TIA
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi
you can either do it in web.config file Here the timeout "20" is in
minutes if u want u can change in to fit your requirement.

Web.Config

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>

or in the session_start of global.asax

protected void Session_Start(Object sender, EventArgs e)
{
Session.Timeout = 20;
}

HTH
Regards
Ashish M Bhonkiya
"Poppy" <pa**********@NOSPAMthemedialounge.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Is it possible for me to increase the time before a session times out and do it in the global or webconfig files ?

In asp I used to put session.timeout = whatever in the session start event
of the global asa file.

TIA

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.