M
matt.sickler
Does anyone know how to get the UserID of the Anonymous user?
The following only returns the UserName, not the UserID
HttpContext.Current.Profile.UserName
and
HttpContext.Current.Request.AnonymousID
also, this does not work for anonymous users
MembershipUser mu =
Membership.GetUser(HttpContext.Current.Profile.UserName);
return (Guid)mu.ProviderUserKey
The following only returns the UserName, not the UserID
HttpContext.Current.Profile.UserName
and
HttpContext.Current.Request.AnonymousID
also, this does not work for anonymous users
MembershipUser mu =
Membership.GetUser(HttpContext.Current.Profile.UserName);
return (Guid)mu.ProviderUserKey