public void SetCookie(string userName, string role,string cookieValueName) {FormsAuthentication.FormsCookieName FormsAuthenticationTicket myTick = , userName, System.DateTime.Now.AddMinutes(),DateTime.Now, false, role); string encryptTick=FormsAuthen…