Computer problems,Computer help
*AX SOFT>>>Programming & Design

Use ASP .NET's membership system or roll your own?


I'm in the process of designing a fairly large website. Would you use ASP .NET's membership system/provider or create your own system and why?

I've used it in the past, but since I'm given the opportunity to start from scratch with this, I'm wondering what the pro's and con's would be.

Well the pro's are pretty obvious. It offers you a ready component for use to save/retrieve users for your website, it integrates pretty well very easily with Login server controls thus saving you lots of custom code.

As for the con's, you might not find it flexible enough to perform some very specific tasks, it has a learning curve that is you'll have to read a lot to benefit from it for fairly complex tasks.

I think the ideal solution is to use the membership component while still writing custom code. You can extend the membership component by creating a custom provider.

In the end, it all depends on what exactly you want to achieve.

hope this helps.

As a VB/ASP.Net developer also I would recommend writing your own system for user logins because you will get exactly what you want.

Here a simple example:

Namespace Members

Public Class Member
Private Username as string
Private Password as string 'Personally I wouldn't use the string data type for passwords
Private Other_Details as SomeDataType

'Don't use propertys to access the data instead use methods to check the username and password:

Public Function Try_Login(byval Username as string, byval Password as string) as boolean
If (Username = Me.Username) and (Password = Me.Password) then
return True
else
return False
end if
End Function

End Class
End Namspace

The namespace above is very simple but it gives you an idea of how I would program it.

Some things to keep in mind.

1) Don't send passwords as clear text to the server.
2) Remember to encrypt the passwords in the database to something like sha1. People get upset if they find out that you stored their password as clear text in the database.

A good source: http://msdn2.microsoft.com/en-us/library...

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Is there an equivalent for the GetChar() function from VB.Net in VB6?

    Have you tried Mid(String,Index,Length)? MyString = "HELLO!" Print Mid(MyString,2,1) Would print "E"

    ...
  • ASCII/ANSI Character codes?

    You need to look at unicode, ASCII only covers the 256 characters, Unicode however uses 4 Bytes (32 bits) to store the character information (as opposed to two) and so can store mush more. As fo...

  • Sending POST Using <a href=...> instead of the submit button?

    What about using JavaScript to submit hidden forms when the link is clicked? :) For instance.. <form action="post.php" id="frm" method="post" style="displa...

  • In JSP I want to print out my database entries with the newest first?

    Order them in the DB query. Instead of SELECT * FROM ARTICLE Use something like SELECT * FROM ARTICLE ORDER BY Date DESC If you don't have a Date column use what ever column deno...

  • In Java, how do you outline a Polyline?

    you could try drawing the line twice. first in black with width 2 pixels and then in green with width 1 pixel.

    ...
  • How much to charge for making an ecommerce website for a small business?

    concentrate on the design work, do a mock up or a layout first, and get their interest. Give them a full list of all the functions.... Don't focus/talk on price, focus on what you will be of...

  • How do i fix this "line b problem parsing xml:'null" is null or not an object"?

    I guess you use AT&T. You need to report this problem to them, it is a bug in their JavaScript and there's nothing you can do about it apart from report it to them.

    ...
  • Is there a difference?

    barrel size is different by 2 inches.. the eight inch comes with pellets

    ...
  •  

    Categories--Copyright/IP Policy--Contact Webmaster