Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search


State Management :: Session Data Lost On Postback Of The Page In Windows XP? session data lost on postback of the page in windows XP.

View 4 Replies (Posted: Apr 26, 2010 07:29 PM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Session Data Lost On Postback Of The Page In Windows XP?
I have a ascx page on load of the page I save few data in the HttpContext Session, on selection of data in the screen I reload the page with relevant data for the selection. Until here the data in the session exists. But on click of a button say ok button to navigate to next page. all the data in the session is lost. But the same works in windows 7 and windows server 2008 not in windows XP. are there any configuration difference in windows 7 and XP.

Posted: Apr 26 10 at 19:23

View 1 Replies!   View Related
State Management :: Dynamic Code Lost With Page Postback?
I have a simple webform, it has table server control and button, i need to addrow dynamically to the table everytime i hit the button, the first time i do, itworks fine and add row perfectly, but when i hit it for next time, nothing change, it seems that the page lost the previous status.


Posted: Apr 22, 2008 04:33 AM

View 12 Replies!   View Related
State Management :: Session Data Getting Lost For Few Variables
I am using Windows xp/ .net 2.0 / vs 2005 for development environment. My session data (not all session data) are getting lost when I try to navigate between pages through but the same is working perfectly in proc mode but in state server / sql server mode I am facing the problem.

Posted: Apr 19, 2010 03:26 PM

View 9 Replies!   View Related
State Management :: Session Is Lost In Web Farm Using SqlServer Session State With 3.5
I am facing session lost problem after deplying my project on web farm. Recently our project has been migrated from .net framework 1.1 to 3.5 and we are now using Visual Studio Team system 2008. There is issue in employee self serve mode: As employee logs into the system the sequence of redirection goes like following:

1. EmployeeUsageAgreement.htm
2. LegalAgreement.htm
3. LandingPage.aspx

On Login page we create the sql session state and fill it with necessary SessionData and redirect user to 'EmployeeUsageAgreement.htm' page. On clicking continue at this screen he is redirected to 'LegalAgreemnt.htm' These twopages containstatic information so we have converted these from aspx to htm file as during load testing it is very fast. On clicking continue at LegalAgreement page employee is redirected to 'LandingPage.aspx' This is the deciding point for further screen in sequence so we do some database trips and update more session variables.

After migrating the application to ASP.NET 3.5 and deploying it on Load Balancer we get 'Object Reference not set to instance of an object' error. The error log states that when on page load one session data is added we get this error because 'SessionData' is Nothing. How come SessionData which was created at Login.aspx is not available at 'LandingPage.aspx'. This is working fine when we deploy the project on environment having one web server and one app server but when load balancer comes into picture the session is lost on page 3 in sequence.

I would liketo give some more input on this: I have referred the topic of MSDN and completed the said steps but problem still persists: PRB: Session State Is Lost in Web Farm If You Use SqlServer or StateServer Session Mode [URL] is there any additional setting we need to do in ASP.NET 3.5 using Web Farm because on ASP.NET 1.1 using web farm it was working fine.

Posted: Mar 30, 2009 09:47 AM

View 3 Replies!   View Related
State Management :: SQL Session State Lost After Close Browser?
I'm not sure if this is an error or is the right work mode for sql sessions.

I'm working now with Windows 2008 R2 Web Ed. and SQL Server 2008 Web Ed.

When I close my browse and open again a new browser window I need to login again in application and a new session is created in the sessions table in sql server.

It's this normal? I remember that with Windows 2003 and SQL 2005 this doesn't happend. When I closed my browser and open inmediately a new browser window my session was retained and I could continue working without relogin.

Posted: May 03, 2010 05:35 PM

View 3 Replies!   View Related
State Management :: Session Gets Lost When Set Session Response.cookie
I need to make my session cookie as secure but whenever i check user authentication and after that i am trying to set cookie to true then my session lost my user information and so it always redirect login page. I am settings user to HttpContext.Current.Session["user"] and check every time, is user is valid and if valid then move ahead. but before that i make my session cookie as true.


but after that i observethat somehow "Session_Start" event gets called.

Posted: Jan 25, 2011 11:07 AM

View 1 Replies!   View Related
State Management :: Session State Variables Getting Lost?
I am working on an website using C#. The site deals with orders and therefore order lines. I would like to store the order in memory whilst it is being populated (with order lines) and once it gets submitted write it to a database.

The above logic has been implemented, but sometimes when accessing session state or storing a variable in it information gets lost. Take note that the web server is running a dual-core processor. I am also using the in proc session state server.

I tried changing over to using the out proc session state server ( state service), but it requires serialization. Since the order and orderlines are actually linq to sql classes, the entitysets and entityref's fail to serialize.

Does anyone know the reason why session state loses information occasionally and possibly how to eliminate the problem?

Posted: Jun 28, 2010 10:16 AM

View 4 Replies!   View Related
State Management :: Session State Gets Lost?
I have a problem with a couple of web sites where my session state gets lost prematurely.

I use the Inproc session provider and 2.0. Which of these are true:

The antivirus software disturbs the session. IIS recycles the app pool every 2 hours and it does not retain the sessions during a recycle. Index server disturbs the session. Anything else that can have disturbed the session?

Posted: Dec 16, 2010 02:17 PM

View 3 Replies!   View Related
State Management :: Lost Object Values In Postback?
I create a class with some atributes.In a web form, I declare a public object like this.Partial Class Intencion

Posted: Aug 10, 2010 09:45 PM

View 7 Replies!   View Related
State Management :: Session Variables Value Lost Between Pages?
I am using Session ID Manager in all the pages of the website, but I am losing session variables in between the pages. what should I do to save the values of session variables.

Posted: Nov 23, 2010 07:07 AM

View 5 Replies!   View Related
State Management :: Session Variables Lost In IFrame
I have session variable that is created in EditPlaylist.aspx. Edit.aspx is loading EditPlaylist.aspx in an iframe.


Posted: Dec 13, 2010 09:53 PM

View 5 Replies!   View Related
State Management :: Session Lost When Is Used In IE 8?
Existing applications works fine with IE 6 and 7, the problem occurs only with IE 8. A new session is created everytime a is used to open anew asp page. This does not happen in IE 6 or 7.

Posted: Jun 10, 2010 04:44 AM

View 2 Replies!   View Related
State Management :: Lost Session After Finish Proccess.start In 2.0?
I need to run a exe file in server. I use proccess.start to do this. When the process.start finish then the session is lose and I lose the user with I login.

Posted: Mar 08, 2011 07:06 PM

View 1 Replies!   View Related
State Management :: Session Lost When Multithreading Though ( There Is A Wait Call ! )?
I am creating a multithreading application and I am using countdownevent to signal my object arround 3 times and using wait , but somehow the session goes null , although I am setting a breakpoint after mycountdownevent.wait() and the breakpoint isnt reached , that means the execution is not can someone tell me what is wrong?? here is my code :

this is the main thread


this is the upload image method :


and this is a property for the countdown event :


Posted: Mar 09, 2011 06:45 PM

View 7 Replies!   View Related
State Management :: Lost Some Values From Collection Stored In Session Variable?
I am creating a presentation on basis of some selected values and maitaning the selected values in a session variable named Session("userPref") in collection form.

Now I am opening a TablePreview.aspx page by javascript function.

On Page_Load of TablePreview.aspx I am reading some values of Session("userPref") and doing some operatons.

For saving the presentation I have created a page wizardsave.aspx.

Now I am opening the wizardsave.aspx from TablePreview.aspx by function for saving presentation, but on Page_Load of wizardsave.aspx. I found that some value from collection stored in Session("userPref") have lost.

Posted: Jul 27, 2010 02:01 PM

View 4 Replies!   View Related
State Management :: Lost Session Variables On Redirect After Cross Domain Httppost Request
I have an asppagewith an httppost request to bypass loginfor another .net pageon another domain. This works fine and returns the results as expected. I am having difficulty when navigating away from theresulting page as the post request I have made is simply response.write of the xml returned so the pagestays on the old domainwithout a redirect to the new site. Therefore any links I have on the new page do not work without using the fullpath to the page, same goes for any buttons which do postback as the page does not exist on the asp site. I am at present storing the currentURL in a session variable so this can be used throughout the site,when I try to navigate away from the page it does so but the session variable is then lost and so redirecting to a page after this does not include the fullpath and so the browser is looking for the next page on the original domain where it does not exist.

Is there any way I can retain session variables throughout these pages? Or another solution I a missing with this? I am using an httppost request because of the bypass of the login screen from one domain to another, I cannot pass these values on the querystring as I need to maintain the security integrity of the system.

Posted: Feb 29, 2008 02:15 PM

View 3 Replies!   View Related
State Management :: Session Variable Persisting Even After Abandoning A Session - Closing Browser Windows
I have been spending a better part of a week trying to track down why I am not able to clear all session variables in a web app (vs 2010, WhatI have tracked itdown to is thatwhen Iremove or abandon sessions that myhtml pages or codebehind access,it works, but for some reason in any of my class files where I use "Public Shared strConnection as String = HttpContext.Current.Session("strConnection").ToString" to access a session variable, it finds the old one and not the current one.I have to wait for it to time out, go in again, and it will find the new one.

I do not use Linq, and there is only one place in the whole web app that I place the connection string in a variable whcih is when a person logs in. It points them to the correct database. The sqlconnection is set for all of my listviews in Page_Init to make sure that they aren't using any session variable that they create on their own. Interestingly enough that if I use debug to go in each time, exit debug, enter debug again trying to access a different database, it works correct eachtime. I assume that debug is correctly killing the session variable for the classes for me.

Posted: Aug 05, 2010 05:56 PM

View 4 Replies!   View Related
State Management :: Form Data Lost When Using Back Button In Browser After To A Separate Page
I have 3 aspx pages: search, results, and details. User enters search criteria and submits. The page redirects to the results form. User clicks back from browser and search criteria is still present. However, if user clicks a link on the results form (which
uses to load the details page in a new browser window), clicking back button reloads the search page and the user's search criteria is gone.

I'm unclear as to why the behavior is different between the search and results page when all that changed on the results page was a client-side event.

Posted: Dec 07, 2009 09:36 PM

View 3 Replies!   View Related
State Management :: Session Does Not Persist After Postback On Deployment
I ve been searching for this on various forums and came through a number of supposed solutions which didnt work for me.

My web form works perfectly for me when on development and after publishing on IIS but when Itry to access remotelythe sessionvalue is always null.

I do these things in the following order and when accessing remotely I always get the exception i throw when session is null.

I debugged it and my list is never null when reaching the assignment point.


in webconfig I have the following tag which I saw as an answer in many forums

<sessionState mode="InProc" cookieless="true" timeout="200" />

Posted: Nov 22, 2010 01:51 PM

View 1 Replies!   View Related
State Management :: New Session Is Being Created On Each Postback On Live Server?
Thisisthe strangest problem im facing(may be i missed something). The application works fine locally, but when uploaded on the live server. the session values are not retrieved properly.

i have stored a value in a session in master page's code behind. and afte the page is redirected is to another page, there im not able to retrieve the session value.

why this is hapening.. i remind you this is working perfectly on local server. problem is only when published on live server.

Posted: Nov 17, 2010 05:51 AM

View 2 Replies!   View Related
State Management :: Show Previous Page Data In Next Page Using Session Variable
I want to show my data in next page with well formated in table.I all ready write code for session which show data in next page.but i wantto show it intable format and i also want to comapre in databasefor a price and showtoo. this is my code for next page:


this code show me data but as i say iwant it in table format and want to comapare session varibles in database i want to show price accoding that particular product. The Pervious page code:


Posted: Jan 19, 2011 06:36 PM

View 4 Replies!   View Related
State Management :: Viewstate And Dropdownlist / Initial Selection Is Lost Each Time The Page Refreshes
I have a simple search page with a drop down list that I would like the value to persist on refresh..basically the user will select their location from the dropdownlist and this will be used to populate a gridview. After this the page is set to refresh at a set interval and use the same location data initially selected by the user. However the initial selection is lost each time the page refreshes.

p.s system is to old for ajax!

<meta http-equiv="Refresh" content="300" />
<script runat="server">
Dim connectionString As String = ConfigurationManager.ConnectionStrings("****").ConnectionString
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Not IsPostBack Then
Dim conn As SqlConnection
conn = New SqlConnection(connectionString)
Dim Locationcommandtext As String
Locationcommandtext = "SELECT * FROM [Location] ORDER BY [Location]"
Dim loccomm As SqlCommand
loccomm = New SqlCommand(Locationcommandtext, conn)
Dim reader As SqlDataReader
reader = loccomm.ExecuteReader()
Locations.DataSource = reader
Locations.DataValueField = "LocationID"
Locations.DataTextField = "Location"
Catch ex As SqlException
Response.Write("SQL Error:
" & ex.ToString())
End Try
'"Viewstate should kick in here"
End If
End Sub

Posted: Jan 13, 2011 10:16 AM

View 6 Replies!   View Related
State Management :: Multiple Servers - Data Lost
I have 2 front end servers and 2 back end servers. There is a registration form in my web application. The registration form uses a Microsoft Wizard control. Lets say the Wizard control has 4 steps. After the fourth step, users click "Finish" and I display the "Thank you Message". The way the request is routed between the 2 servers is round robin. So lets say till the fourth step, the response comes from server A. After the user clicks "Finish", lets say the response now comes from server B. After they click "Finish", I am trying to access some information in the Wizard control (like Name, address and so on). Because the servers are now switched, the data is lost (at leastthats what I think is happening). So all entries in the wizard control are now blank and when I try to read those values, they are null.

Posted: Apr 16, 2010 06:00 PM

View 8 Replies!   View Related
State Management :: Web Application Class Data Is Lost
i have an web application.


When i click button 1, a new list is created. But when i click button 2, it gives me error, saying that its a null list.

The changes i did in Button1_Click() are somehow rolled back. I want to keep the changes.

Posted: Jul 14, 2010 01:17 PM

View 5 Replies!   View Related
State Management :: How To Prevent Session Timeout During Files Uploading (postBack Free Up-loader)
i am using a multi selecting file upload control which is postBack free.

I am usingsession timeout.

My problem is that during files uploading my sessiongot expired. Bcoz my uploader not being postback so i can't enhance session timeout. and while uploading my session got expired and process was not ompleted,causes some imp filescould not uploaded.

Posted: Sep 23, 2010 06:44 PM

View 2 Replies!   View Related
State Management :: Unable To Make The Session State Request To The Session State Server?
We have recently started receiving these errors in the event viewer. We are using the out of proc state server on the same machine. The errors become more frequent, almost like it snowballs until users cannot work.System Info: Windows Server 2003 Standard SP2 , 4 GB of RAM, IIS 6.0, Asp.Net 2.0.What I know for certain:The state server is started and running

Posted: Feb 17, 2009 07:20 PM

View 4 Replies!   View Related
State Management :: Storing Large Data In Session State?
We have a scenario where we need to store large tables of data on Session in page. on a highlevelwe have to store following data

1> A table (table 1)with 1000 rows and 8 to 10 columns.

2> A table(table 2)with 500 rows and 8 to 10 columns (actually user can add the data from table 1 to table 2, so as user keeps on adding from table 1 we remove the data and put it in table 2)

3> Another table(table 3) with 1000-1200 rows each having 3 columns.

We are having a webfarm, so we need to store it in either SateServer of Oracle DB,What would be the performance implications of storing such huge data on the server.

One more thing is at any point of time max of70 -80 people will be accessing our website, so will this cause any performance degradation?

Posted: Sep 18, 2010 06:13 AM

View 7 Replies!   View Related
State Management :: How To Manage Session Data Outside The Session Object
I want to be able to persist data across a session but do this outside of the built-in session state object. Why is a long story that Iwill not go into here. I just need to know where I can put data other than in the session object that will persist across the specificsession.

Posted: Oct 07, 2010 04:16 AM

View 3 Replies!   View Related
State Management :: Session Variable Looses Its Value On Next Page?
IDE: MS Visual Studio 2008 / SQL Server 2005 Express / SQL Server Management Studio Express 2005

Skills: Beginner

Well im trying to make a custom login page(im not using Login Control), in Admin.aspx page

UserName and Pasword are entered in textboxes , then Code-Behind file checks the UserName and Pasword against DataBase(it stores the UserName and Pasword) if both are correct Session["IsAuthenticated"] = "true" and then user is redirected to AdminArea.aspx

AdminArea.aspx checks if ( Session["IsAuthenticated"].ToString() == "false" ) then redirect to Error page..

but i get NullReferenceException on AdminArea.aspx because Session["IsAuthenticated"] is null , i dont know why ?

I even tried PreviousPage.Session["IsAuthneticated"] but still got the same error..

I debugged,and found out Admin.aspx saves value in Session["IsAuthenticated"] succesfully but AdminArea.aspx looses the Session["IsAuthenticated"] it gets null

My Question is how to retain value in Session["IsAuthenticated"] when page is changed (I want to retrieve value in next page from Session)?

Posted: Jul 23, 2010 09:19 PM

View 11 Replies!   View Related
State Management :: Session Timeout On Page Basis?
How can I remove or Dispose a session once user navigate from one page to other. I just want to use a session which should expire when user navigate to other page..its same like view state..we don't get viewstate information on page to page. why session: i need to keep one value on page constant on page refresh where as Viewstate will be reset to null on page refresh...and i just don't want to use that session once user navigate to other pages.. where i need to plcae the session dispose in page events or methods?..or is there any way to keep viewstate on page refresh?

Posted: Dec 14, 2010 07:28 PM

View 9 Replies!   View Related
State Management :: Session Value Becomes Null After Redirecting To Different Page?
I have logged in to theapplication and naviagate to Resource Editor page where it allows user to enter the value and saves to the resource file of the application.

After user clicks save button and navigate to different page the session value becomes null.

If the user navigate to different page without clicking save the session variable has its value

Posted: Aug 04, 2010 11:12 AM

View 3 Replies!   View Related
State Management :: Get Session Value In Global.asax Page?
When i start the application, based on some condition in global.asax page,i wil redirect to login page.If i click the logout button,

there i vil be clear all session value. here i want to initiate new session value like Session["InitialLogin"]="Yes".

How can i get this value in global .asax page. If get that session value [i.e Session["InitialLogin"]="Yes"], i vil redirect to some other page.

I cant able to get session value in global.asax page.i always getting null value.

Posted: Apr 06, 2010 08:54 AM

View 7 Replies!   View Related
State Management :: Can't Retrieve Session Variable From Another Page
i'm a c# beginner, i set a session variable ina.aspx but it'snull when i try to retrieve it in b.aspx

Posted: Sep 27, 2010 09:35 AM

View 5 Replies!   View Related
State Management :: Clear The Session When Pass From One Page To Another?
I have a report parameter page which contains many pop up windows for the parameter selection. For example, for driver , there is a pop up window called driver.aspx which contains a listbox that contains list of driver's name.

Now, for each of these pop up windows, i am passing the values of these windows as a session value.

Now, when a user logs in the system, there are many parameter pages for differentreports which commonly share the same pop up windows if the parameters are same for different reports.

The problem now is,auser selects 10 drivers for report 1 and runs it. When he goes to report 2 and runs the report, the report 2 takes only those 10 drivers as the driver parameter value.

It means, the error can arise on the system because he may forgot that he have selected 10 drivers for previous report 1. User will not have time to recheck each previous selected values of different paramaters.

What i want is, when a person moves from one report page to another, i want to clear all the session values andadjust it as default for the new report .

Posted: Aug 04, 2010 04:43 AM

View 6 Replies!   View Related
State Management :: Set Session Out Open Login Page?
i create a web site using frame and child when session i s out i require Login page open in browser not opend in frmaehow to set Session out open login page

Posted: Sep 20, 2010 01:29 PM

View 1 Replies!   View Related
State Management :: Session Value Null In Master Page?
Im trying to use code provide in this link below. trying to have the below code in my master page instead of adding to each page. it works if i add to each page, but when i add to ,master page the session value for "WindowName" is always can i fix this?

<script language="javascript" type="text/javascript">if( != "<%=GetWindowName()%>"){ = "invalidAccess";"InvalidAccess.aspx", "_self");}</script>public string GetWindowName(){ return Session["WindowName"].ToString();}

Posted: Jun 10, 2010 04:16 AM

View 6 Replies!   View Related
State Management :: How To Persist A Class Object When Page PostBack
i have created a user control UserControl.ascx, in Code behind file of UserControl.ascx i have created an object of a class MyClass.cs,


if(!Page.IsPostback) {
objMyClass= new MyClass();

but when i click on button of UserControl.ascx page and try to access objMyClass object then it set as null, so how to persist MyClass object when page PostBack, i wanted to keep object persist till the user access the page, when user goes out of this page then object should distroy?


Posted: Oct 05, 2010 11:03 AM

View 9 Replies!   View Related
State Management :: Does A Page Unique Id That Is Accessable Before And After Postback In Page_Init?
I do some dynamic stuffwith UpdatePanel controlsand it would be great to store stuff in aSession keyand be able to grab it immediately with confidencein aPage_Init.Fantasy e.g.,

Session[pageInstanceID + "ThekeyIWantAccessTo"] = "123";
locVarValue = Session[pageInstanceID + "ThekeyIWantAccessTo"] +"";

I want something like this so that even if an individual user has two or more instances of that page open I am able to respond correctly to the immediate instance in Page_Init. Is it possible to achieve what I want or some facsimile of same? I know I can speculatively make an assumption and then check it in Page_Load when I have access to ViewState, but I would like something that approaches a best practice.

Posted: Apr 09, 2010 08:35 PM

View 4 Replies!   View Related
State Management :: Value Of The Cookie To Increase Only If The Page Is Not Being Accessed Due To A Postback?
I need to write code that displays the number of times a user has accessed it. I need the value of the cookie to increase only if the page is not being accessed due to a postback.So basically it will display the following on screen: 'you have visited this site 10 times' What language I use is up to me but I prefer working with VB in

Posted: Nov 29, 2010 10:04 PM

View 6 Replies!   View Related
Copyright 2005-08, All rights reserved