Go Back   Cloud Computing > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-27-11, 02:21
BOD Member
 
Join Date: Aug 2011
Posts: 76
Default online status display logout

Hi there!

I need help with my Homepage. It´s just a simple Homepage where friends of mine can watch partypics and chat with eachother. recently i wanted to add a feature so everybody (who´s logged in) can see everybody else who´s online on my page, so he can write a pm or something like it. The problem:

I tried to write down the members name in a database in the moment he logs in. But i dont know how to delete his name from the database when he logs out. the log out process is not defined in any way, the sessions just get destroyed when the browser get closed.

Thx in advance
Reply With Quote
  #2 (permalink)  
Old 10-03-11, 10:05
BOD Member
 
Join Date: Apr 2011
Posts: 67
Default

The act of closing the web browser is a client side event, and php/mysql or whatever you are using is server side, hence when the browser is closed, there is nothing to trigger a server side event. However, there are other ways to show who is online, for example BODHost forum does so at the bottom of the page. Do some Google for a script...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.