We can clear the session on global level in mvc 5 using Session_End() in global.asax. The below example might help you for clear the session and abandon session in the global levels.
1. Session.Clear(); // for clear sessions.
2. Session.Abandon(); // for abandon sessions.
1. Session.Clear(); // for clear sessions.
2. Session.Abandon(); // for abandon sessions.
//End the application sessions.
private void Session_End(object sender, EventArgs e) { Session.Clear(); Session.Abandon(); }