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 |
Explain the main function of razor in asp.net? : asp.net mvc
Why session is used in asp.net?
Why Web Services?
About Global .asax ?
Diff B/W user control and server control
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
What is difference between asp state management and asp.net state management?
How to compare two strings with out Case sensitive ?
What is AutoPostback?
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.
Explain the difference between debug.write and trace.write?