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 two web application share a session and application variable ?
5 Answers Satyam, V3 Engineers,
What does the "EnableViewState" property do?
what is the trace in ASP.NET
Is asp.net different from asp? If yes, explain how?
What is server redirect?
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
Elaborate differentiation between ViewState and SessionState?
What is an example of an application service provider?
what is the difference between console.writeline &console.output.writeline?
How dataadapter.fill works?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
0 Answers InfoAxon Technologies,
Define session in asp.net.