0
Hi
just make the session value null
Session["id"] = null;
check the link
http://stackoverflow.com/questions/8971625/how-to-remove-specific-session-in-asp-net
0
I don't really think that you actually want to clear the session, because it holds a lot of information.
I think you only want to clear a particular custom variable you have set (for example, Id)
You can use .Remove method. Session is nothing but a name value pair collection. Please refer to the following link:
https://msdn.microsoft.com/en-us/library/system.web.sessionstate.sessionstateitemcollection.remove.aspx