How to remove specific session in asp.net?

前端 未结 6 1850
醉酒成梦
醉酒成梦 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:24

    There is nothing like session container , so you can set it as null

    but rather you can set individual session element as null or ""

    like Session["userid"] = null;

提交回复
热议问题