Last update rate update problem

I have a property DateTime LastSeenthat is stored in the database the last time the user was viewed.

I have one way to remember when to update the database is to do this while checking the user during login.

Another way is that I am going to update the database every 20 minutes, where do I put this logic in asp.net mvc? Do I need to set lastupdatea cookie and check this? Where can I check this cookie, except in global.ascx. file?

How do other systems do this?

+3
source share
2 answers

Google Analytics . :

a) //-, HTTP- b) ajax (a) .

", , , , []"

+1

, , , , , .

CreateOn, CreatedBy, ModifiedOn, ModifiedBy, , , , , " .

0

Source: https://habr.com/ru/post/1789062/


All Articles