protected void Application_End() { // Code that runs on application shutdown Session.RemoveAll(); UserInformation.Session_User = null; ClientInformation.Release(); }
private void btnLogin_Click(object sender, RoutedEventArgs e) { ClientInformation.Release(); LoginWindow loginWindow = new LoginWindow(); loginWindow.Show(); this.Cursor = Cursors.Arrow; Close(); }
protected void Application_Error(object sender, EventArgs e) { //Code that runs when an unhandled error occurs Session.RemoveAll(); UserInformation.Session_User = null; ClientInformation.Release(); Response.Redirect(Server.MapPath("/") + "Login"); }