Interviews7 answers
How to kill a user session?
7 Answers
Session.Abandon();
nithin rajPosted Oct 22, 2018, 6:49 AM EDT
Session.Abandon();
Ali GhaffariPosted Jul 20, 2018, 12:40 PM EDT
there are three way to use kill the session in asp.net
1. Session.Abandon();
2. Session.Clear();
3. Session.RemoveAll();
Pankaj KumarPosted Jun 18, 2018, 8:30 PM EDT
You can use Session.Abandon(); or Session.Clear();
Deepak VermaPosted May 21, 2018, 12:01 AM EDT
There Are 3 ways to Destroy Session
Session.Abandon();
Session.Clear();
Session.RemoveAll();
Aniket RanaPosted Apr 3, 2018, 12:26 AM EDT
Session.Abandon();
Manisha MakadePosted Mar 22, 2018, 11:16 PM EDT
When a user logs into the website, it’s a good practice to create a new session to track the user activities. So, meantime we need to handle log out scenario as well. So, we will kill a user session once user logs out of the application. Below is the code snippet that can be written to kill the user session –
Session.Abandon();
Rajesh GamiPosted Feb 25, 2018, 11:19 PM EST






