dear you can make a field in user table "Login" and when user logged in to you site then update "Login" with 1 and when logged out then update with 0 and use this query to count
$query=Select COUNT(users) form userstable WHERE Login=1
yeah thought about it, but it wouldn't it be the same as creating a single record in a table and updating it when someone logs in and logs out.
The User table would also need to be updated for automatic Logouts, I'm guessing the query would take longer to count the records than a single select statement?
User
Name Logged In
Steve T
John T
Bob F
Grant T
Or Just
UsersOnline
3
Why do it the long way round? (I'm using Cookies for Forms Authentication)
Bookmarks