private void Power_OnClick(object sender, EventArgs e) { ConfigHelper.CurrentUserId = Guid.Empty; Log4net.LogInfo(Log4net.LogAction.Logout, this.ToString()); // set the IsLoggedOn to false will redirect to Logon Page. this.Context.Session.IsLoggedOn = false; VWGContext.Current.HttpContext.Session.Abandon(); VWGContext.Current.Transfer(new Public.Logon()); }