Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Counting Most Active Users
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Counting Most Active Users

 Post Reply Post Reply
Author
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Topic: Counting Most Active Users
    Posted: 16 July 2006 at 4:24pm
I want to count Most Active Users ever on my website like on wwf Active uesrs count is on the bottom right corner but I also want max number of active users ever on my website. How?
The Judgement Day
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2006 at 4:58pm
i use a database with (site, Count, Max)

i then have it so it only updates when session and cookie (count) = "" then i add one to the count, field

the MAX = max ever online at once

do a check if Count > max then update MAX

and store the max within a a application verible to save queries
Back to Top
miladanimator View Drop Down
Groupie
Groupie
Avatar

Joined: 24 July 2005
Location: United States
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote miladanimator Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2006 at 6:19pm
you should create a column in tblconfiguration with name  : online_users

and write asp codes to add online users in this row and then :

if activeusers > online_users   then update this column ...



If I have free times , I write this mod ...
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2006 at 7:48pm
I don't want to use database for this purpose as it will increase server load, what I think. Is there any way that I can implement it using Application and Session objects?
The Judgement Day
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2006 at 8:35pm
Application objects will only last until the next iis restart so the max user data's got to be written somewhere - in either a text file or in a db. Doing I/O on a text file is going to be more expensive than using a DB.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2006 at 8:43pm
OK! can anyonee write scalable code to store data in DB. Thanks in advance.
The Judgement Day
Back to Top
Demon View Drop Down
Mod Builder Group
Mod Builder Group
Avatar
Mod-n-Skin Moderator

Joined: 26 July 2003
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote Demon Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2006 at 10:39pm
So Sayith the Demon.
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2006 at 9:04pm
and what if I want to use Application and Session objects for the said purpose. How the code will look like?
The Judgement Day
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.