Page 2 of 2

Re: logout

Posted: Wed Jun 15, 2011 4:47 pm
by ashwood
jacek wrote:[syntax=sql] > (UNIX_TIMESTAMP() - 300)[/syntax]


im gettin well confused i think i am going to try my way.. and everytime they load a page i will put a check at the top in php so everytime somebody clicks a page.. the checker will delete everyone who was online less than 5 minutes ago.. only problem i have is.. im putting my shoutbox on my homepage which means some people might just stay on the homepage.. doesnt mean there offline?

Re: logout

Posted: Wed Jun 15, 2011 5:13 pm
by jacek
ashwood wrote:some people might just stay on the homepage.. doesnt mean there offline?

No way around that.

EDIT: unless you have an ajax call to the server run every 5 mins.

Re: logout

Posted: Wed Jun 15, 2011 5:40 pm
by ashwood
i really dont know how i can do this.. unless when i do the shoutbox i send the time to the database just like the time of the click on the page?