[Last Call] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2011-10-03
Medium Priority
Last Modified: 2012-05-12
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.
Question by:karlomedallo23
1 Comment
LVL 16

Accepted Solution

Easwaran Paramasivam earned 2000 total points
ID: 36914872
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

Writing a Custom Membership Provider for the Login Control in ASP.NET 2.0

Writing A Custom Membership Provider for your ASP.NET 2.0 Web Site


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month18 days, 6 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question