public void Logout_Click(object sender, EventArgs e)
 {
     loginId   = Convert.ToInt32(HttpContext.Current.Request.Cookies["Press3Cookie"]["LoginId"]);
     agentId   = Convert.ToInt32(HttpContext.Current.Request.Cookies["Press3Cookie"]["AgentId"]);
     roleId    = Convert.ToByte(Session["RoleId"].ToString());
     accountId = Convert.ToInt32(Session["AccountId"].ToString());
     Session.Clear();
     Session.Abandon();
     LogoutSession(loginId, agentId);
     if (roleId == 1)
     {
         StudioController studioControllerObj = new StudioController();
         studioControllerObj.ManagerDashBoardCounts(MyConfig.MyConnectionString, accountId, "AgentLogout");
     }
     if (HttpContext.Current.Request.Cookies["Press3Cookie"] != null)
     {
         HttpCookie authCookie = new HttpCookie("Press3Cookie", "");
         authCookie.Expires = DateTime.Now.AddDays(-1);
         Response.Cookies.Add(authCookie);
     }
     Response.Redirect("/Login.aspx");
 }