Symptoms: the number of "online users" displayed on the home page and the current activity of online users on the "online user list" page are statistics over the last hour, so if a user is still online 59 minutes after the cancellation, and the action is "canceling ".... no corresponding item in the background management is configured for this time. although the statistical time of anonymous users can be configured, it does not work.
Cause: In the Stored Procedure cs_users_Online, the hard code UserOnlineTimeWindow is 60 minutes. In the code, the hard code AnonymousUserOnlineTimeWindow is 15 minutes.
Solution:
(1)/web/Themes/default/Skins/Skin-SiteSettingsAdmin.ascx against AnonymousUserOnlineTimeWindow UserOnlineTimeWindow also added textbox controls for configuration
(2)/Web/Languages ages/all the Languages you need/Resources. xml Add the localized strings added in (1)
(3) Compare AnonymousUserOnlineTimeWindow in/Control/Admin/SiteSettingsAdmin. cs and add textbox and other controls to UserOnlineTimeWindow for configuration.
(4) modify the Stored Procedure cs_users_Online and comment out SET @ PastMinutes = 60.
(5) Search for Users. GetGuestsOnline (15) in the solution and change it to Users. GetGuestsOnline (CSContext. Current. SiteSettings. AnonymousUserOnlineTimeWindow ),