Hello Sir.....
I m working in ASP.NET technology and i want to know about that.. I have create one or more session and i want to delete one session in our application please define how to remove one session ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhishek KumarRank #510 · 4.8K reputationPosted May 28, 2014, 7:00 AM EDT
Use below code for session you want to remove.
Session["wanttoRemove"] = null;Abhishek
Khan Abrar AhmedRank #778 · 3K reputationPosted May 28, 2014, 9:03 AM EDT
Abhay ShankerRank #375 · 6.7K reputationPosted May 28, 2014, 7:20 PM EDT
Session.Remove("SessionKey");
otherwise
Session["SessionKey"]=null;
Jignesh TrivediRank #16 · 50.3K reputationPosted May 28, 2014, 8:12 PM EDT
Please refer below link it might help you
http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.remove(v=vs.110).aspx