also check the Enable Session State and Session timeout properties in Application Configuration
Main Topics
Browse All TopicsI have a RetriveParticipant page, which has a Onlcik even on a button with the following info:
protected void AddCollection_Click(object
{
Session["sParticipantID"] = lblParticipantID.Text;
Session["sCollectionType"]
Session["sCollectionDate"]
Response.Redirect("Retrive
}
I am supossly storing the fields into the session.
On the RetriveSurvey.asp page, I am binding and saving a survey for each participantID.
on if (!Page.IsPostBack) // i have
{
lblParticipantID.Text = Session["sParticipantID"].
lblSurveyID1.Text = Session["SurveyID"].ToStri
}
On binding the survey, i am just cheking for :
private void Bind_Survey()
{
if ((Session["SurveyID"] != null) && (Session["sParticipantID"]
{
btn_Submit.Visible = false;
SqlCommand cmdSurvey;
cmdSurvey = new SqlCommand("spRetrieveSurv
cmdSurvey.CommandType = CommandType.StoredProcedur
cmdSurvey.Parameters.Add(n
cmdSurvey.Parameters.Add(n
adn so ..... on
on the other hand, to save a new survey I have
protected void Save_CollectionPoint_Surve
{
if ((Session["sParticipant"])
{
and so on.....
Seems like it works sometimes and it doesent in the same time.
When I click to add a new survey, it gives me the previews survey with the retrive data i had saved before. Sometimes it logs me out.
How would i manage this problem?
Let me know if yo have any other question.
Thanks in advance
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
... and if none of the above solves the issue, remember that the application may automatically recycle for a number of reasons- number of requests & time come to mind. In IIS7, fine-grain control of recycling conditions is in the interface. Also, if an application 'leaks' memory (and possibly other resources), it will eventually demand too much and trigger an automatic recyce. There is no control of that, except by preventing a leak.
Check this:
When using the in-process session-state mode, session-state data is lost if aspnet_wp.exe or the application domain restarts. These restarts commonly occur in the following circumstances:
-Setting an attribute in the <processModel> element of the application's Web.config file that causes a new process to start when a condition is met, such as memoryLimit.
-The Global.asax or Web.config file is modified.
-Changes to the \Bin directory of the Web application.
-Antivirus software scans and modifies the Global.asax file, the Web.config file, or a file in the \Bin directory of the Web application.
From: http://msdn.microsoft.com/
Business Accounts
Answer for Membership
by: j_a_jimenezPosted on 2009-09-30 at 15:50:05ID: 25464422
Check the Connection timeout in IIS Web Site Properties