protected void lnkLogout_Click(object sender, EventArgs e) { string getCookie = ManageCookie.Cookies_Get("Username"); if (!string.IsNullOrWhiteSpace(getCookie)) { bool b = Autheticate.LogoutUser(getCookie); if (b) { ManageCookie.Cookies_Set("Username", "", DateTime.Now.AddDays(-1)); Response.Redirect("Login.aspx"); } } }