mardi 21 juillet 2015

Online users list in nopcommerce 2.40

How can i find out list of all logged in users in nopcommerce 2.40, I'm maintaining a flag in database which tells me that user is signed in or not. Everytime when user login value of flag is set to 1 and on logout value is set to 0. But there are two cases which are not being covered in the above scenario

  1. When user after login closes the browser (the value of flag is still 1 in database but the user has left the site).
  2. When site is open and no action is performed on site for more than 20 minutes(the value of flag is still 1 in database but the user is not active on the site)

.

Any ideas about how to overcome the problems and get list of all online users which are active?

Aucun commentaire:

Enregistrer un commentaire