What method do you use to explicitly kill a users session? How?



What method do you use to explicitly kill a users session? How?..

Answer / Sumit Shrivastav

To end a user's session in .NET, you can use the Session.Abandon() method or the Session.Clear() and Response.End() methods in ASP.NET. However, it is important to note that these methods do not immediately close the user's browser, they simply remove the server-side session data.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Which method do you use to redirect the user to another page without performing a round trip to the client?

4 Answers   Siebel Systems,


what is managed data and managed code?

2 Answers  


Where does the dispose method lie and how can it be used to clean up resources?

1 Answers   Wipro,


Please explain what is the difference between encrypting a password and applying a hashing?

1 Answers  


Is .net a language?

1 Answers  


Which ports are used by viruses? UDP/TCP?

1 Answers  


Explain what is heap and what is stack?

1 Answers  


What is the difference between imperative and interrogative code?

1 Answers  


Explain what is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

1 Answers  


Explain is the jit an interpreter?

1 Answers  


What is file extension of Webservices in .Net?

1 Answers   Arigo Infotech,


what is dotnet architecture? can anyone explain that.

2 Answers  


Categories