How to kill session?

Answer Posted / prajeesh

You can use
Session.Abandon();
Or
Session.RemoveAll();
or
Session.Clear();

But it is better to use Session.Abandon()
because it will removes associated session is also

http://prajeeshkk.blogspot.com/
http://dotnetbird.wordpress.com/

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how is a property designated as read-only?

553


What are the steps involved to fill a dataset?

558


What are the types of session in asp.net?

528


What is slidemaster?

468


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

515






What is tracing? Where is it used?

555


What are server-side comments in ASP.NET?

551


Explain the difference between value type and reference type?

265


What is asp.net mvc5? : Asp.Net MVC

541


What is the difference between a page theme and a global theme?

546


What is Dynamic Web and discuss its usage with the help of real life examples?

600


What is data grid view in asp.net?

537


What can we do with asp.net?

516


What is meant by server side scripting?

525


How do u deploy ur project?

2222