insanemonkey
10-27-2007, 09:49 PM
I have asked this question before and got no anwser...
What I am trying to do is show if the user is online like myspace has it..
I use sessions and was wondering what I could do to make this happen..
I can't find any tutorials out there for this..
in my sessions I have this.
function startSession(){
global $database; //The database connection
session_start(); //Tell PHP to start the session
$this->logged_in = $this->checkLogin();
/* Update timestamp */
else{
$database->addActiveUser($this->username, $this->time);
}
what that does it checks user online then update timestamp, I was wondering how I could user this in order to show(when a user visits a users profile) them online.
any help please,...
What I am trying to do is show if the user is online like myspace has it..
I use sessions and was wondering what I could do to make this happen..
I can't find any tutorials out there for this..
in my sessions I have this.
function startSession(){
global $database; //The database connection
session_start(); //Tell PHP to start the session
$this->logged_in = $this->checkLogin();
/* Update timestamp */
else{
$database->addActiveUser($this->username, $this->time);
}
what that does it checks user online then update timestamp, I was wondering how I could user this in order to show(when a user visits a users profile) them online.
any help please,...