You are here: Re: How To check SessionID available or not? « PHP Programming Language « IT news, forums, messages
Re: How To check SessionID available or not?

Posted by Peter Fox on 02/27/06 11:07

Following on from Mitul's message. . .
>Hi to all,
>
>I am working on a site in which I need to check whether user is online
>or not. If user successfully logged out then I can change status from
>online to offline but if user do not logged out and close the browser
>or session timeout then in both of the case I do not handle how to
>change user's status from online to offline.
>
>Please help me to overcome the problem. Looking forward to reply from
>all of you.
>
>With Regards & thanks,
>Mitul Patel
>
You can't, using HTTP, 'ping' the client.
What does that leave?

The client might send a 'heartbeat' using Javascript say once every
couple of minutes.

How could you implement this? Possibly by requesting a url for a frame.
Whatever scheme you use don't expect it to work 100% of the time.


My guess is that you need _instead_ to look /carefully/ at user
authentication.






--
PETER FOX Not the same since the bookshop idea was shelved
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация