CCS bug 3: online users collect statistics for the last hour, which does not meet user habits and can be changed without configuration items.

Source: Internet
Author: User
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 ),

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.