I want destroy all sessions at one time. I have tried Session.Abondon() method but I don't know why this is not destroying all the sessions.
Session.Abondon()
You can't destroy all the sessions, you can only clear current session. You probably have to recycle the application pool to clear out all sessions.
Use HttpSessionState.Clear to clear out current session
HttpSessionState.Clear
From MSDN - HttpSessionState.Clear Method
Removes all keys and values from the session-state collection.
Call it like :
Session.Clear();
1.4m articles
1.4m replys
5 comments
57.0k users