Guest User

Untitled

a guest
Jul 15th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. HttpContext.Current.Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(authTicket)));
  2.  
  3. FormsAuthentication.SignOut();
  4.  
  5. userPrincipal.Identity.IsAuthenticated
  6.  
  7. Debug.Assert(HttpContext.Current.Request.IsSecureConnection, "oops, the IsAuthenticated is not working here");
  8.  
  9. if (HttpContext.Current.User.Identity.IsAuthenticated)
  10. {
  11.  
  12. }
Add Comment
Please, Sign In to add comment