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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access