What are the differences between Membership.GetUser() and Context.User, and which is recommended for use in getting information about the current user?
If you don't have membership configured for your site, getuser() won't yield anything.
Context.user is the identity token handed to the asp.net runtime, and will yield a user if any authentication aside from anonymous acces is configured fo the site.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With