F
Frankie
Are these two statements equivalent (i.e., result in the removal of the
object named MyObject from the session)?
Session["MyObject"] = null;
Session.Remove("MyObject");
I would think that the first statement above would result in the object
still being in the Session, but just with a null value. So, if I want it to
be completely gone from the Session I'd have to use the second statement. Am
I correct?
object named MyObject from the session)?
Session["MyObject"] = null;
Session.Remove("MyObject");
I would think that the first statement above would result in the object
still being in the Session, but just with a null value. So, if I want it to
be completely gone from the Session I'd have to use the second statement. Am
I correct?