asp. net of C Method for clearing all Session and single Session
- 2021-11-13 18:00:13
- OfStack
Examples are as follows:
Session.Abandon();// Clear all Session
// Clear a Session
Session["UserName"] = null;
Session.Remove("UserName");
Examples are as follows:
Session.Abandon();// Clear all Session
// Clear a Session
Session["UserName"] = null;
Session.Remove("UserName");