Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to find source for SqlProfileProvider.cs file
Message
 
 
À
14/04/2008 13:23:24
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01309118
Message ID:
01310456
Vues:
18
>>What I don't understand is why private void GetProfileDataFromTable(SettingsPropertyCollection properties, SettingsPropertyValueCollection svc, string username, SqlConnection conn) method tries to update last activity date?
>>
>>If we're only trying to access the data, why do we need to update the information?
>
>Is the purpose of GetProfileDataFromTable to get the users info when he logs in, or to get it to display it to other users or admins?
>
>If it's for log in, then updating the access date makes sense, if not then it doesn't.

From the login page the SetProfileData method (or similar) is called, so it does properly update last activity date. The retrieving of the profiles info is done in my page that deals with all users info/roles where it doesn't make sense. I'm not sure why no one really caught the problem before and why the developers of this provider thought that we may want to update the last activity date on the data retrieval (and also implemented this in SP as well). Sounds very strange to me.

In any case, commenting out the call to this procedure in the get method seems to fix the problem.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform