Create a customized membership
See the question and my original answer on StackOverflowMaybe the official doc is a good starting point: Sample Membership Provider Implementation.
You can also have a look at the standard sql server membership using .NET Reflector. I found it the best way to learn how you are supposed to implement it.