473,372 Members | 1,034 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

How many users currently viewing a page ?

I have come across this question many a times , i have a solution in my mind and i think it is effective enough to be used .

I need your opinion so that i can complete this idea and release the script under sourceforge.

"As soon as any page is opened , the IP Address and the current time is logged in the database. This will give us the idea that the user has opened the website.

Now when the user opens any other page of the same website , just "update" the TIME.
i.e. every page first checks if that IP is in the database , if yes update the time to current time otherwise make a new entry .

Suppose you want to display the users active over past 5 minutes , you can simply run a SQL query which checks all the users whose "time" of entry and the current time has a difference of less than 5 mins.

As mentioned in some other posts , if the user goes to make coffee or just keeps the page in background , the time in database wont be updated due to which the user will be treated as "INACTIVE" and hence will no longer count to the number of people actively visiting the page.

The Key is that , a user is active till the time he keeps on browsing webpages.

The same concept can be used even to display name of members active as in bulletin boards.

The time limit is flexible and can be adjusted as per requirements.

What do you think of my idea ? If you need help with it , i can make the script and release it.
Sep 3 '06 #1
0 1332

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: MyaTix | last post by:
Hi, Can someone tell me how I create a login page which authenticates users against the servers user manager. I want the login to be a form in my website not a pop up window! I would be...
0
by: Greg | last post by:
I have just started my first big project and I am having trouble predicting the system specs that will be required. At present during trials the site has around 15 users, although this will go to...
14
by: Brian Maupin | last post by:
I have a refreshing webcam shot on my site and I was wondering if there was a way I could display how many people are currently viewing it? Thanks in advance.
102
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
2
by: swbaz | last post by:
What is an effect way to prevent users from viewing a webpage directly by typing in its URL? For example: If a default page is set up as a login screen with user name and password. The user...
9
by: rdemyan via AccessMonster.com | last post by:
How does one handle the situation where two different users are looking at bound forms that display data from a table. User #1 makes a change to the data, but User #2 is just perusing the data....
3
by: ~john | last post by:
I'm working on a multi-user system that at times may result in 2 users accessing the same screen. These screens allow the users to both view and update data. The problem comes when you have user A...
3
by: wizardry | last post by:
Hello - i want to limit what users view a page. i have it set up so that the db stores a y|n for this option: public view but how can i stop some one from viewing the page. an example...
4
by: rahullko05 | last post by:
Hi, I am writing a code to display the number of user currently viewing my website at any point of time. for example: for bytes i can see network: 216355 as number of users currently viewing...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.