i made a webpage which use FormsAuthentication. now i need to get the user id of the user (if a user is logged in)
how to get these? i tryed to access it via the F
F
if (HttpContext.Current.User.Identity.IsAuthenticated) { var id = HttpContext.Current.User.Identity.Name; // Do stuf... }