if (System.Web.HttpContext.Current.Application["Login"] != null ) { sessions.Remove(System.Web.HttpContext.Current.Application["Login"].ToString()); }
MSDN wrote:You can handle the Session_OnEnd event by adding a subroutine named Session_OnEnd to the Global.asax file. The Session_OnEnd subroutine is run when the Abandon method has been called or when the session has expired. A session expires when the number of minutes specified by the Timeout property passes without a request being made for the session.
Session_OnEnd
Abandon
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)