Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

How to kill session?

Answers were Sorted based on User's Feedback

How to kill session?..

Answer / payal

session.abandon method

Is This Answer Correct ?    44 Yes 5 No

How to kill session?..

Answer / santhi


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


Is This Answer Correct ?    34 Yes 15 No

How to kill session?..

Answer / mandira singh


Is This Answer Correct ?    14 Yes 1 No

How to kill session?..

Answer / prajeesh

You can use

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

Is This Answer Correct ?    18 Yes 6 No

How to kill session?..

Answer / shahid


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

Is This Answer Correct ?    13 Yes 7 No

How to kill session?..

Answer / siva vardhan

We can use these to clear session

Is This Answer Correct ?    8 Yes 4 No

Post New Answer

More ASP.NET Interview Questions

Which authentication uses a combination of windows and iis authentication?

0 Answers  

what is CLR?

3 Answers   PrimeLine,

Dategrid filtering and sorting How can we sort all the fields at once?

3 Answers   Satyam,

Explain the difference between asp and

0 Answers  

when the user control event occur in ASp page life cycle?

3 Answers   Microsoft,

What ?ll u do in early and late binding ?

1 Answers   DELL,

Can we use multiple web.config files in an sigle appliction?

3 Answers   IBS,

What do you mean by role-based security?

0 Answers  

What does the orientation property do in a menu control?

0 Answers  

Can we have a web application running without web.config file?

0 Answers  

How do we assign page-specific attributes?

0 Answers  

In a Repeater control how one can provide an alternating color scheme ?

0 Answers   Siebel,