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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhishek KumarPosted May 28, 2014, 11:00 AM
Use below code for session you want to remove.
Session["wanttoRemove"] = null;Abhishek
Jignesh TrivediPosted May 29, 2014, 12:12 AM
Please refer below link it might help you
http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.remove(v=vs.110).aspx
Abhay ShankerPosted May 28, 2014, 11:20 PM
Session.Remove("SessionKey");
otherwise
Session["SessionKey"]=null;
Khan Abrar AhmedPosted May 28, 2014, 1:03 PM