Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone uses ASP .NET Membership?

Was wandering if anyone uses ASP .NET membership? If you do, tell me what you think about it.

If you don't use it, Are you planning to use it on future projects? If not, why?

RWendi

like image 283
RWendi Avatar asked Nov 20 '08 04:11

RWendi


People also ask

How does ASP net membership work?

The ASP.NET membership provider is a feature that enables ASP.NET developers to create Web sites that allow users to create unique user name and password combinations. With this facility, any user can establish an account with the site, and sign in for exclusive access to the site and its services.

What will you do to find out whether a user is a member of a particular role in a website that uses ASP Net Membership control for creation of user accounts?

To get information about a particular user, use the Membership class's GetUser method.

What is membership in web config?

The membership element is a sub-element of the system. web section. You can enable ASP.NET Membership for an application by directly editing the Web. config file for that application, or you can use the Web Site Administration Tool, which provides a wizard-based interface.


2 Answers

Yes. Have used it quite a lot, and it will save you a lot of work.

There are some pain points like changing usernames, and administrative reset of passwords, that clients will often ask for, and you will have to hack your way around them.

The role provider is also pretty handy, and there are a lot of prebuilt controls that work with it, although recently hit a bug between role manager and aspnet ajax that has been a PITA.

The model is generally very good, even if you have shop around for some different providers that suit your needs.

Overall, it's not perfect, but if you can live with it and work around it's issues, it will save you heaps of code.

For some situations, it is maybe using a chainsaw when a butter knife would do, but it's there, it works, and there are plenty of other people using it.

Its one kind of hammer, for the price, is ok, but there is no golden hammer.

like image 94
seanb Avatar answered Nov 15 '22 06:11

seanb


I use it in most of my projects. There have been times where it doesn't do what I want it to but there is almost always a way around that. We have used it with Active Directory, Novell EDirectory, and Forms Authentication.

The provider model is great for creating those work arounds. Much better then rolling your own membership code.

The Table Profile Provider is a great tool for getting around the ineffient out-of-the-box implementation of SqlProfileProvider.

There is another product that I have heard of but never tried, called Visual Guard. I would be intersted in any comments anyone has on that.

like image 33
Brian Behm Avatar answered Nov 15 '22 06:11

Brian Behm