logout

Ask about a PHP problem here.
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: logout

Post by ashwood »

jacek wrote:
 > (UNIX_TIMESTAMP() - 300)
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?
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: logout

Post 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.
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: logout

Post 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?
I would put a signature.. BUT, i don't have the time.
Post Reply