A session is lost after a click of a button!
I am saving my typed dataset to a session:
Session.Add("ds_FPInfo_Group", Dataset11)
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'\\To retrieve the session variable'\\
If Page.IsPostBack Then
Dataset11 = CType(Session("ds_FPInfo_Group"),
Data.DataSet)
endif
end sub
The retrieve works well, but when I click on a cmdSave button, the
session is lost.
I have asked other developers in my group and we can not find the answer.
Appreciate your help!!
Alvin Bruney [MVP] - 12 Jul 2006 03:35 GMT
session is typically lost when the application pool recycles. have a look at
your event logs first to see if that is the reason.

Signature
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
>A session is lost after a click of a button!
>
[quoted text clipped - 14 lines]
> I have asked other developers in my group and we can not find the answer.
> Appreciate your help!!
greatdane - 12 Jul 2006 16:49 GMT
This application test is stored in my local machine running xp Professional
and IIS5
I see the dataset populated after postback and at the command button the
dataset is null. It supposed to be in memory.
> session is typically lost when the application pool recycles. have a look at
> your event logs first to see if that is the reason.
[quoted text clipped - 17 lines]
> > I have asked other developers in my group and we can not find the answer.
> > Appreciate your help!!
Alvin Bruney [MVP] - 13 Jul 2006 01:59 GMT
it case you didn't catch my drift, run eventvwr at the command prompt and
have a look at the application logs for any application recycled message
errors that may appear.

Signature
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
> This application test is stored in my local machine running xp
> Professional
[quoted text clipped - 25 lines]
>> > answer.
>> > Appreciate your help!!
Gregory Hill - 25 Jul 2006 18:06 GMT
Can you be more specific about the application pool? Where, exactly, can we find the logs for the pool? I've looked (I think) in all the usual places, but am finding nothing.
Our application is suffering from (apparently) the same problem. If there is any kind of load on the server, beside the app itself, people get booted out of the app. I think I've narrowed it down to the loss of session info.
Any more thoughts?
Gregory Hill - 25 Jul 2006 18:19 GMT
Can you be more specific about the application pool? Where, exactly, can we find the logs for the pool? I've looked (I think) in all the usual places, but am finding nothing.
Our application is suffering from (apparently) the same problem. If there is any kind of load on the server, beside the app itself, people get booted out of the app. I think I've narrowed it down to the loss of session info.
Any more thoughts?
Alvin Bruney [MVP] - 26 Jul 2006 02:13 GMT
run inetmgr from the command prompt expand default websites, application
pool will be there. This is only for IIS 6 on server 03.
run eventwr on the command prompt, examine the application logs for
application pool recylced messages. correlate the time with the problems you
are seeing.

Signature
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
> Can you be more specific about the application pool? Where, exactly, can
> we find the logs for the pool? I've looked (I think) in all the usual
[quoted text clipped - 6 lines]
>
> Any more thoughts?