ASP.NET profile deletion

Posted by Ben Aston on Stack Overflow See other posts from Stack Overflow or by Ben Aston
Published on 2010-04-22T08:59:15Z Indexed on 2010/04/22 9:03 UTC
Read the original article Hit count: 236

Filed under:
|

We use the ASP.NET profile subsystem to associate key-value pairs of information with users.

I am implementing functionality for the deletion of users.

I have been using the ProfileManager.DeleteProfile(string userName) method, but I have noticed that this leaves a row in the aspnet_Users table in the aspnetdb database we use to store the profile information.

Clearly, I could manipulate the database directly, but I am reluctant to do so.

What is the best way to ensure all information assocaited with a user is deleted from the aspnetdb?

PS: there is a tantalising Membership.DeleteUser(string userName, bool deleteEverything) method, but this returns a database connection error. A web.config issue?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about profiles