Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / July 2006

Tip: Looking for answers? Try searching our database.

Losing session variables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
greatdane - 11 Jul 2006 15:26 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.