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

How many types of cache are there?

514


Difference between using directive vs using statement?

490


what is command line compiler.what are the steps and how it is related to debugging.

1391


Can you explain the basic use of dataview?

608


what are the Custom controls in asp.net?

540






What is the benefit of WebAPI over WCF?

546


What are the three parts of an http response?

507


Explain Areas in MVC?

617


Disable Mouse right click on web page in asp.net?

564


How many types cache in asp net?

499


Explain the difference between asp & asp.net.

523


What is _viewstart?

485


What is considered a service provider?

490


What is the significance of finalize method in .net?

520


What is session id in web application?

470