473,396 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

sessionTimeout

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...
Nov 18 '05 #1
1 1259
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" <cm****@yahoo.com> wrote in message
news:eQ**************@tk2msftngp13.phx.gbl...
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...
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
0
by: Keith | last post by:
I have a repeater control that contains a HeaderTemplate and an ItemTemplate. Each item contains a checkbox with an ID of chkReconciled, and the header contains a single checkbox with an ID of...
0
by: Keith | last post by:
I have a repeater control that contains a HeaderTemplate and an ItemTemplate. Each item contains a checkbox with an ID of chkReconciled, and the header contains a single checkbox with an ID of...
0
by: =?Utf-8?B?a3Nlbg==?= | last post by:
Hi, I would like to use DTD entity in web.config. For example Here is my DTD <?xml version="1.0" encoding="us-ascii" ?> <!ENTITY SessionTimeout "30" > In the Web.config Add the following...
2
by: richakarve | last post by:
i want to stop the child window from session timeout if the user is working on its parent window. i am using window.settimeout property. The problem is the child window is not in the Master page...
3
by: Brandon Owensby | last post by:
I am using ASP.NET 2.0 and programming in C#. I am trying to make it so that the secure pages in my web application time out in the browsers cache such that hitting the back button won't show the...
3
by: Blackmore | last post by:
Following the guidance contained in Dreamweaver, I have declared a cflogin tag in the application.cfc file. This declaration contains an idletimeout setting of 10 seconds (N.B. 10 seconds for...
0
by: askaquest | last post by:
Hello, I am setting SessionState like this in web.config <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data...
2
by: redbrad0 | last post by:
I have a ajax script which calls the content of another webpage and just displays the content in a alert (its just the unix timestamp). Even though the time is changing, ajax does not report the new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.