Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: How many people logged into the site?

  1. #1
    jboston is offline Member
    Join Date
    Jun 2009
    Posts
    33

    Default How many people logged into the site?

    Is there a table or log file to decipher how many people logged into the site over a certain period of time?

    It would also be nice to see the user id or customer id associated to the login.

    Thanks.

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    We currently only log admin users logins, however that would be pretty easy to add in. The easiest way would probably be a very small mod to the signin logic.

    In signin.aspx.cs (for 8.x and before) or /controls/signin.ascx.cs (for 9.x), look for the Security.LogEvent reference:

    Code:
    Security.LogEvent("Store Login", "", ThisCustomer.CustomerID, ThisCustomer.CustomerID, ThisCustomer.ThisCustomerSession.SessionID);
    (9.x code)

    That logic is wrapped in an 'if' statement so it only fires if the account signing in is an admin user. If you remove that check, it'll record all logins. You could then run a report on the SecurityLog table in the DB to get that info. Note that if you go this route, the Security Log in the admin site's going to show more than just admin logins as well.

  3. #3
    jboston is offline Member
    Join Date
    Jun 2009
    Posts
    33

    Default

    Thanks for your help.