What is an alternate way to clear all the keys and values from Session variables other than RemoveAll() method?

 Posted by vishalneeraj-24503 on 12/24/2013 | Category: ASP.NET Interview questions | Views: 1810 | Points: 40
Answer:

Clear() static method of Sessions is used to remove all the keys and values from Session variables

For Example:-
Session["Name"] = "Vishal";

Session["Mail_Id"] = "vish@xyx.com";
Session.Clear();


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response