Session Variable

05.25.2011

declare and assign session variable in the first page

syntax: session[“order”] = myComputerOrder;

 

in the second page, instantiate the object and cast the session variable that is stored as a generic object

 

computer_order confirmOrder = (computerOrder)Session[“order”];