Sunday, January 6, 2008

ASP.NET 2.0 Membership API

Today I was exploring on how to make a login form with ASP.NET & Ajax, then I come across few website that bring me to ASP.NET 2.0 Membership API.

Nowadays website require membership, user need to enter a username & password to login. Besides that, there are also roles for each user, something like admin user, super user or normal user. These two things are very hard to avoid, normally it is a requirement to implement.

All the above things can be done with ASP.NET 2.0 build in Membership API. It only require developer drag & drop few things, a simple website with login form done.

For this API, I do feel it is very useful, it save developer hundred of code to implement a login form with roles for each user. But when I start implement it, I feel very hard. The hard part is on their tag. Something like asking a developer who don't know HTML to make a website with Dreamweaver. I feel so uncontrollable on the login user detail:
1) How to login?
2) Login user detail stored where? Session? Cookie?
3) How to logout?

But in the end, I still choose to use this API, temporally able to login & logout. Maybe I need more time to read the tag documentation.

No comments:

Post a Comment