473,385 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Session Data Lost

Hi

I have built a wizard object with Panels in ASP.net. I store data in the
first panel which are used in the second. The Panels contain usercontrols in
which data is stored through Session variables. The problem is that session
data just disappear when I go from the first to the next panel. So for
example in the firstpanel I save the name in a session var:

Session["name"]="Ted";

Then in the next panel try to read it out:
myname = Session["name"];

And then the sessionvariable is empty!

Stepping from one panel to another a postback is executed to retrieve data.
What could be the problem?

ch Jim
Nov 19 '05 #1
2 1537
Is it possible you are trying to read the session data from a panel, before
the other panel had a chance to put it in there? I am guessing there is an
execution flow issue here.

"Jimmy" <be****@gmail.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
Hi

I have built a wizard object with Panels in ASP.net. I store data in the
first panel which are used in the second. The Panels contain usercontrols
in
which data is stored through Session variables. The problem is that
session
data just disappear when I go from the first to the next panel. So for
example in the firstpanel I save the name in a session var:

Session["name"]="Ted";

Then in the next panel try to read it out:
myname = Session["name"];

And then the sessionvariable is empty!

Stepping from one panel to another a postback is executed to retrieve
data.
What could be the problem?

ch Jim

Nov 19 '05 #2
Ok I thought about that one and that is not the problem according to the
debugger... It looks more like the session value is reset to NULL because I
get an object reference error all the time!
ch Jim

"Marina" <so*****@nospam.com> wrote in message
news:ui**************@TK2MSFTNGP15.phx.gbl...
Is it possible you are trying to read the session data from a panel, before the other panel had a chance to put it in there? I am guessing there is an
execution flow issue here.

"Jimmy" <be****@gmail.com> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
Hi

I have built a wizard object with Panels in ASP.net. I store data in the first panel which are used in the second. The Panels contain usercontrols in
which data is stored through Session variables. The problem is that
session
data just disappear when I go from the first to the next panel. So for
example in the firstpanel I save the name in a session var:

Session["name"]="Ted";

Then in the next panel try to read it out:
myname = Session["name"];

And then the sessionvariable is empty!

Stepping from one panel to another a postback is executed to retrieve
data.
What could be the problem?

ch Jim


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Billy Jacobs | last post by:
I am having a problem with my session variable being set to Null for no apparent reason. I am declaring it like the following when the user logs in. dim objUserInfo as new clsUserInfo 'Set...
0
by: CJ | last post by:
Hi We have Session Data lost randomly and Session State expired early. Our Intranet Application uses Window Server 2003 and .Net Framework 1.1. We set Session Time out to 60 minutes. but user...
6
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i...
1
by: ramsankar | last post by:
Hi All, When viewing my php page using IE6.0, I am losing my session data. In the first page I am setting a value to the session variable. In the next page "SOME TIME" the value of the...
3
by: William | last post by:
Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the...
3
by: catweezle2010 | last post by:
Hello NG, I have three files (default.aspx, search.aspx and work.aspx). The way is: login on default (if session is newsession). The loginname I write into as sessionvariable (username). So I...
7
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the...
4
by: Sarah Marriott | last post by:
Our website contains session variables that are used to validate if a user is logged in etc. We have found that these variables are randomly lost while navigating the website. We set up some...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.