Using the Profile Manager

Unlike Session state, profile data does not evaporate when a user leaves your application. Over time, as more users visit your application, the amount of data stored by the Profile object can become huge. If you allow anonymous profiles, the situation becomes even worse.

The ASP.NET Framework includes a class named the ProfileManager class that enables you to delete old profiles. This class supports the following methods:

DeleteInactiveProfiles Enables you to delete profiles that have not been used since a specified date.

DeleteProfile Enables you to delete a profile associated with a specified username.

DeleteProfiles Enables you to delete profiles that match an array of usernames or collection of ProfileInfo ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.