How to kill session?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / siva vardhan
We can use these to clear session
Session.Abandon();
this.sessio.clear();
Is This Answer Correct ? | 8 Yes | 4 No |
Can you explain the importance of finalize method in .net?
In which event of page cycle is the viewstate available?
Can you nest updatepanel within each other?
How would you get ASP.NET running in Apache web servers - why would you even do this?
What is difference between Fragment Caching and Page Caching in ASP.NET?
Explain cashing in asp.net.
What is a session in programming?
How does session work in asp net?
What are the authentication types in asp.net?
Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?
Is it possible for me to change my aspx file extension to some other name?
What is boxing?
8 Answers IBM, Misys, Siebel Systems,