C
Chris Cauchi
In my Global.asax Session_Start function I have the following:
TCustomer oCustomer = new TCustomer();
Session["FCurrentCustomer"] = oCustomer;
TCart oCart = new TCart();
oCart.Customer = oCustomer;
Session["FCurrentCart"] = oCart;
After the login page retrieves the customer info and populates the
FCurrentCustomer object, inspecting the FCurrentCart.Customer object
does not return the expected values. It's not a reference to the same
object anymore. Is this normal for ASP.NET?
I am new to ASP.NET, am used to the Windows programming world, so
please excuse my ignorance!
Chris Cauchi
TCustomer oCustomer = new TCustomer();
Session["FCurrentCustomer"] = oCustomer;
TCart oCart = new TCart();
oCart.Customer = oCustomer;
Session["FCurrentCart"] = oCart;
After the login page retrieves the customer info and populates the
FCurrentCustomer object, inspecting the FCurrentCart.Customer object
does not return the expected values. It's not a reference to the same
object anymore. Is this normal for ASP.NET?
I am new to ASP.NET, am used to the Windows programming world, so
please excuse my ignorance!
Chris Cauchi