What is the easiest way to migrate existing login to asp.net membership?

I have an existing site with simple authentication (through a database) and I want to change it to asp.net membership.

My exisiting login calls a stored procedure that returns the user id and other relevant details if user and password matches. I then store those to the session and each of my "secured" pages checks for the session variables to determine if they are an authenticated user.

Please note that the passwords currently are NOT encrypted.

There could be lots of solutions here so it would be better if there's a brief explanation of why I should do it your way.
LVL 2
karlomedallo23Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Easwaran ParamasivamCommented:
The best way to keep your underlining database and your exisiting code is to create a Custom Membership provider. You can call of your exisitng code from your provider to update/add/remove users then you can get all the functionalty from the Memebership API and cool login controls while keeping your database intact.

A quick vid on how to implement it: http://channel9.msdn.com/ShowPost.aspx?PostID=180276

Some articles:

Implementing a Membership Provider
http://msdn2.microsoft.com/en-us/library/f1kyba5e.aspx

Writing a Custom Membership Provider for the Login Control in ASP.NET 2.0
http://www.15seconds.com/issue/050216.htm

Writing A Custom Membership Provider for your ASP.NET 2.0 Web Site
http://www.devx.com/asp/Article/29256

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.