How to remove specific session in asp.net?

前端 未结 6 1851
醉酒成梦
醉酒成梦 2020-12-28 12:54

I am facing a problem. I have created two sessions:

  1. Session[\"userid\"] = UserTbl.userid;
  2. Session[\"userType\"] = UserTbl.type;
6条回答
  •  清酒与你
    2020-12-28 13:16

    A single way to remove sessions is setting it to null;

    Session["your_session"] = null;
    

提交回复
热议问题