![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: Track Users Online with Sessions?
From: Barkster <bdog4@hotmail.com>
Date: Fri Mar 31 2006 - 06:14:59 CEST
I found this and is what I'm looking for but no matter what I get '0'
/* Start the session */
/* Define how long the maximum amount of time the session can be
function getOnlineUsers(){
if ( $directory_handle = opendir( session_save_path() ) ) {
return $count;
} else {
}
echo 'Number of online users: ' . getOnlineUsers() . '<br />';
|