Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Wanted: Help setting session timeout

Reply
Thread Tools

Wanted: Help setting session timeout

 
 
Siegfried Heintze
Guest
Posts: n/a
 
      08-16-2006
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      08-16-2006
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
>
>
>

 
Reply With Quote
 
 
 
 
Siegfried Heintze
Guest
Posts: n/a
 
      08-16-2006
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]" <> wrote in message
news:7581AF44-F169-45A5-A363-...
> 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
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
Re: ASPX Page Timeout - Session Timeout bruce barker ASP .Net 2 07-20-2004 08:39 PM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM
web.config session timeout and forms authentication timeout Do ASP .Net 2 11-23-2003 02:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57