If you use ASP.NET security, that is, membership providers and role providers, etc., you do not need to store them. Membership Provider:
MembershipUser myObject = Membership.GetUser(); string UserID = myObject.ProviderUserKey.ToString();
In addition, if you authenticate the user on each page, which occurs automatically on the secure website, then the membership provider should not return to the database to receive data, since it is already available for the current request.
If you use a ready-made profile provider, I would advise you to use and download the table-based provider mentioned in Scott Gugβs blog: http://weblogs.asp.net/scottgu/archive/2006/01/10/435038.aspx This much friendlier and much better than the default provider.
source share