Professional Web Applications Themes

Record When Was Maximum Users On YOur Site ! - ASP

Dear Friends Hope you all doing great. I made a website where I am able to record how many users are online right now at my website ysing Session_Variables. Now I want to record the date when I had maximum number of users online at onetime. Any idea how can I do that. Waiting for your reply. Love Lovely --------------------------...

  1. #1

    Default Record When Was Maximum Users On YOur Site !

    Dear Friends
    Hope you all doing great.

    I made a website where I am able to record how many users are online
    right now at my website ysing Session_Variables.

    Now I want to record the date when I had maximum number of users
    online at onetime.

    Any idea how can I do that.

    Waiting for your reply.

    Love
    Lovely

    --------------------------
    Lovely Angel For You Guest

  2. #2

    Default Re: Record When Was Maximum Users On YOur Site !

    What kind of database?

    Ray at home

    --
    Will trade ASP help for SQL Server help


    "Lovely" wrote in message
    > I made a website where I am able to record how many users are online
    > right now at my website ysing Session_Variables.
    >
    > Now I want to record the date when I had maximum number of users
    > online at onetime.

    Ray at Guest

  3. #3

    Default Re: Record When Was Maximum Users On YOur Site !

    Hi
    I am using the following script in global.asa. This works fine and let
    me know how many users are currently active on my website.

    I am using Access database. It also stores total number of hits and
    total new sessions also.

    Any idea how to tell which date there were maximum active users.

    Waiting for your replies.

    Love
    Lovely

    --------------------------------------

    <SCRIPT LANGUAGE="VBScript" RUNAT="Server">
    Sub Application_OnStart
    Application("ActiveUsers")=0
    End Sub

    Sub Session_OnStart
    Application.lock
    Application("ActiveUsers") = Application("ActiveUsers") + 1
    Application.unlock

    End Sub

    Sub Session_OnEnd
    Application.lock
    Application("ActiveUsers") = Application("ActiveUsers") - 1
    Application.unlock
    End Sub
    </SCRIPT>

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Lovely Angel Guest

  4. #4

    Default Re: Record When Was Maximum Users On YOur Site !

    Ray at <%=sLocation%> wrote:
    > "Lovely" wrote in message
    >> I made a website where I am able to record how many users are online
    >> right now at my website ysing Session_Variables.
    >>
    >> Now I want to record the date when I had maximum number of users
    >> online at onetime.
    > What kind of database?
    >
    I think that was the o/p question - sort of ;o)

    --
    William Tasso - [url]http://WilliamTasso.com[/url]


    William Tasso Guest

  5. #5

    Default Re: Record When Was Maximum Users On YOur Site !

    If you have a table that just has this:

    TableName: AppCount

    MaxCount (Number)
    TimeLog (Date/Time)


    You could do:

    Sub Application_OnStart
    Application("ActiveUsers")=0
    End Sub

    Sub Session_OnStart
    Application.lock
    iAppCount = Application("ActiveUsers") + 1
    Application("ActiveUsers") = iAppCount
    objYourADOConnectionToYourAccessDatabase.Execute "UPDATE [AppCount] SET
    [MaxCount]=" & iAppCount & ",TimeLog=#" & Now() & "# WHERE " & iAppCount &
    ">[MaxCount]"
    Application.unlock

    End Sub


    That will execute a query on every new session, and if the new value is
    higher than the current value stored in the DB, it will update the record.
    Otherwise, it will find no records to update.

    Ray at home


    --
    Will trade ASP help for SQL Server help


    "Lovely Angel" <lovely_angel_for_you> wrote in message
    news:OdiYLs2XDHA.2572TK2MSFTNGP09.phx.gbl...
    > Hi
    > I am using the following script in global.asa. This works fine and let
    > me know how many users are currently active on my website.
    >
    > I am using Access database. It also stores total number of hits and
    > total new sessions also.
    >
    > Any idea how to tell which date there were maximum active users.
    >
    > Waiting for your replies.
    >
    > Love
    > Lovely
    >
    > --------------------------------------
    >
    > <SCRIPT LANGUAGE="VBScript" RUNAT="Server">
    > Sub Application_OnStart
    > Application("ActiveUsers")=0
    > End Sub
    >
    > Sub Session_OnStart
    > Application.lock
    > Application("ActiveUsers") = Application("ActiveUsers") + 1
    > Application.unlock
    >
    > End Sub
    >
    > Sub Session_OnEnd
    > Application.lock
    > Application("ActiveUsers") = Application("ActiveUsers") - 1
    > Application.unlock
    > End Sub
    > </SCRIPT>
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Ray at Guest

Similar Threads

  1. Tracking users on the site
    By Christopher Seymour in forum Dreamweaver AppDev
    Replies: 3
    Last Post: May 24th, 05:34 PM
  2. Number of users at a particular site
    By Websitenoobie in forum PHP Development
    Replies: 2
    Last Post: August 18th, 05:20 PM
  3. MAC users please quick test site.. PLEASE HELP!!!
    By JustMe in forum Macromedia Flash Sitedesign
    Replies: 0
    Last Post: December 17th, 06:43 AM
  4. Replies: 5
    Last Post: September 22nd, 01:17 AM
  5. Site check, mac users
    By Ville Leivo in forum Macromedia Dreamweaver
    Replies: 4
    Last Post: July 29th, 05:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139