How to kill session?

Answers were Sorted based on User's Feedback



How to kill session?..

Answer / payal

using
session.abandon method

Is This Answer Correct ?    44 Yes 5 No

How to kill session?..

Answer / santhi

session.abandon();

Is This Answer Correct ?    37 Yes 4 No

How to kill session?..

Answer / divya

by using session.abandon()
this cancels the current session immediately and releases
all memory it occupied

Is This Answer Correct ?    32 Yes 4 No

How to kill session?..

Answer / kailash dhondiyal

There is nothing like Session.Kill in ASP.NET. So please
update this. Best answer is Session.Abandon

Is This Answer Correct ?    23 Yes 3 No

How to kill session?..

Answer / srikanth

session.abandont

Is This Answer Correct ?    34 Yes 15 No

How to kill session?..

Answer / mandira singh

session.abandon

Is This Answer Correct ?    14 Yes 1 No

How to kill session?..

Answer / 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

How to kill session?..

Answer / shahid

Session.Abandon();

Is This Answer Correct ?    10 Yes 0 No

How to kill session?..

Answer / anil

there are two ways to kill the session
1:abandon method
2:don't write anything in session it will automatically
kill

Is This Answer Correct ?    13 Yes 7 No

How to kill session?..

Answer / siva vardhan

We can use these to clear session
Session.Abandon();
this.sessio.clear();

Is This Answer Correct ?    8 Yes 4 No

Post New Answer

More ASP.NET Interview Questions

Explain the main function of razor in asp.net? : asp.net mvc

0 Answers  


Why session is used in asp.net?

0 Answers  


Why Web Services?

1 Answers  


About Global .asax ?

6 Answers   Satyam,


Diff B/W user control and server control

3 Answers  






What is the Web.config file used for? a) To store the global information and variable definition for the application. b) Configures the time that the server-side codebehind module is called c) To Configure the Web Server. d) To Configure the Web browser.

8 Answers   HCL, IBM, Syntax Softtech, Vypin, WideVision Technologies,


What are the Types of authentications in IIS

0 Answers   Microsoft,


What is difference between asp state management and asp.net state management?

0 Answers  


How to compare two strings with out Case sensitive ?

4 Answers   Protech, ProtoTech,


What is AutoPostback?

0 Answers  


After building the custom control, you test it by adding an ASP.Net web application to the solution. You add a correct <%@ Register %> directive and a proper declaration of the control in the <asp:Form> tag to the Web Form, but when you execute the application you get an error. What is the most likely reason for the problem? a) The custom control must be compiled first. b) The web application must have a reference to the control c) The custom control must be registered with windows first. d) The assembly from the custom control is not in the application?s bin directory.

1 Answers   Syntax Softtech,


Explain the difference between debug.write and trace.write?

0 Answers  


Categories