pradeep wrote:
Hello all,
There is system. Users are logging , working and logout.
Suppose, 5 users are working and Admin wants to find out no. of users
working on system with their name ?
How to find this ?
Thanks in advance.
In addition to what Toby said, you can do it even on a shared host, but
neither is reliable. They work fine if the user logs off, but not if he
just shuts down his browser.
To do it without your own session handler, you need to keep a list of
logged-in people. Probably a flag in the database would be most
appropriate.
But you'll also need a timestamp field to tell when they did log in, and
if they've been logged in longer than the session time limit, you need
to clear the flag. Maybe easier would be just a timestamp - if it
exists, the person is logged in. When the person logs out, clear the
timestamp.
Then you need a program (i.e. a cron job) to go through the list on a
regular basis to clear users who have been logged in to long.
But none of this is very accurate. They really only tell you who logged
on - not whether they were still active.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===