How to clear user cookies after pressing the SharePoint 2013 out-of-the-box signout button

private void RemoveCookiesAndSignOut() { // Clear session state. if (Context.Session != null) { Context.Session.Clear(); } string cookieValue = string.Empty; if (Context.Request.Browser[“supportsEmptyStringInCookieValue”] == “false”) cookieValue = “NoCookie”; // Clear my own cookie. HttpCookie cookieWinSignIn = Context.Request.Cookies[“Morpheus_WindowsSignedIn”]; if (cookieWinSignIn != null) { cookieWinSignIn.Value = cookieValue; Context.Response.Cookies.Remove(“Morpheus_WindowsSignedIn”); Context.Response.Cookies.Add(cookieWinSignIn); } // Remove cookies for authentication. HttpCookie cookieSession = Context.Request.Cookies[“WSS_KeepSessionAuthenticated”];… Continue reading How to clear user cookies after pressing the SharePoint 2013 out-of-the-box signout button

C# : Handling not sent email exception

Im stuck with problem as some of the system users are “nonactive” users and my function is not handling exception of not sending email to “nonactive” users. Function send email to users even if they are nonactive in system. private static bool Postepowanie_ObslugaPodstawowa(AlertTyp typPowiadomienia, string statusDescr, int podanieId, IUzytkownik sender, IEnumerable<IUzytkownik> recipients) { SzablonPowiadomien szablon… Continue reading C# : Handling not sent email exception