I want in my StoreController class, to join another class member variables, don't know the life cycle of the member variables, don't have to in the Session?
The class StoreController: Controller
{
OrderInfo orderList=new OrderInfo ();
}
Instance of the Controller is the same life cycle as with the Session, the bundle together with the Session?
CodePudding user response:
Each request will create an instanceYou use butt also want to come out, if an instance of each session that doing the session object