I am facing a problem. I have created two sessions:
Session["userid"] = UserTbl.userid;
Session["userType"] = UserTbl.type;
I know how to remove sessions using Session.clear(). I want to remove the session "userType".
Session.clear()
How do I remove a specific session?
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;
Session["userid"] = null;
1.4m articles
1.4m replys
5 comments
56.9k users