473,396 Members | 1,702 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.

Wanted: Help setting session timeout

I have edited my web.config file in an attempt to prolong the amount of time
my browser can site idle:

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

This does not seem to help, however. I still get the following stack trace
when the web browser sits for more than 10 minutes (approx) with no
activity:

Line 238: void UpdateDataView(){
Line 239: DataSet ds = (DataSet)
Session["MyDataSet"];
Line 240: DataView dv =
ds.Tables["MyList"].DefaultView;It looks like a session problem to me. Why
does not chaning the timeout in the web.config file solve this problem?

Thanks,
Siegfried
Aug 16 '06 #1
2 1406
Are you sure that Session["MyDataSet"] is not null? I don't see any code to
check for that. It may very well be that you *think* it isn't null, but a
logic error or exception in code somewhere else could be making it so.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Siegfried Heintze" wrote:
I have edited my web.config file in an attempt to prolong the amount of time
my browser can site idle:

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

This does not seem to help, however. I still get the following stack trace
when the web browser sits for more than 10 minutes (approx) with no
activity:

Line 238: void UpdateDataView(){
Line 239: DataSet ds = (DataSet)
Session["MyDataSet"];
Line 240: DataView dv =
ds.Tables["MyList"].DefaultView;It looks like a session problem to me. Why
does not chaning the timeout in the web.config file solve this problem?

Thanks,
Siegfried
Aug 16 '06 #2
Peter,
Well, I have not checked it with the debugger but I am sure it is null. But
it only becomes null after 10 minutes or so. It is probably becomming null
because of some timeout parameter that us purging my session state. Where is
this parameter? Is it in the web.config file? I tried altering that one and
it did not help. Is there another one?

Thanks,
Siegfried

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:75**********************************@microsof t.com...
Are you sure that Session["MyDataSet"] is not null? I don't see any code
to
check for that. It may very well be that you *think* it isn't null, but a
logic error or exception in code somewhere else could be making it so.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Siegfried Heintze" wrote:
>I have edited my web.config file in an attempt to prolong the amount of
time
my browser can site idle:

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

This does not seem to help, however. I still get the following stack
trace
when the web browser sits for more than 10 minutes (approx) with no
activity:

Line 238: void UpdateDataView(){
Line 239: DataSet ds = (DataSet)
Session["MyDataSet"];
Line 240: DataView dv =
ds.Tables["MyList"].DefaultView;It looks like a session problem to me.
Why
does not chaning the timeout in the web.config file solve this problem?

Thanks,
Siegfried

Aug 16 '06 #3

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

Similar topics

3
by: Craig Storey | last post by:
I have a form where users logged in using sessions can edit articles in a WYSIWYG editor. Some of them take their time and don't like to save their work very often and occassionally the sessions...
4
by: yohomonkey | last post by:
I want to setting the session end , but ican't waiting for the session is timeout! Who can help me?
2
by: Ric Pullen | last post by:
Hi, i've been playing around with the session time out setting in the webconfig. Now i set it at 1 minute and waited in the global.asx in the session end event but it does not fire. What i'm...
1
by: Scott Walters | last post by:
Hi, I have an asp.net webapp that uses some javascript in a hidden frame on the browser to poll the server every 30 seconds, using an http post. I also want my sessions to timeout in the...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
6
by: somaboy mx | last post by:
Hello I need people to be able to complete long text blocks in my cms before their session times out. From the php documentation I gather that ini directive session.gc_maxlifetime would be the...
1
by: Ken Varn | last post by:
IIS has a Session Timeout setting. How does this setting coincide with the ASP.NET property Session.SessionTimeout value. If I change this value in code, will it override the IIS Session Timeout...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.