How to kill session?

Answer Posted / dhana sekhar

session.abandon()---this is used to destroy the all the
objects stored in a session.and realese the all the
resources.

session.clear()--used to cleare the session variables
Ex:session["a"]=null;

session.remove()--used to delete an item from seesion-
collection

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mvc in asp.net interview question? : Asp.Net MVC

479


What are the advantages and limitations of query string?

554


How ASP.NET page works?

667


In how many ways we can retrieve table records count?

528


How can u deifne the benefits and limitation of using Viewstate for state management?

695






What is asp.net caching?

566


I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?

529


What is the used of "ispostback" property?

554


What is directive in asp net?

529


What is autopostback in dropdownlist in asp net?

517


What are the parts of an http response?

484


What does the orientation property do in a menu control?

521


What is the difference between system.stringbuilder and system.string

246


How should I destroy my objects in asp.net?

590


Describe the .net base class library.

519