You are here: Re: Need to find-out improper sign-out « PHP Programming Language « IT news, forums, messages
Re: Need to find-out improper sign-out

Posted by Jerry Stuckle on 03/03/07 14:18

Kesavan wrote:
> Is there any way to run a function or a code-block whenever the client-
> server communication breaks off. (ie power-off, browser-crash...)
>
> Why I need this is, I want to update a login-table to trace user's
> leave the portal without proper log-off or sign-out.
>
> Every time a user at proper sign-in, a flag is set & account is locked
> until he sign-out by updating in the login-table.At sign-out the flag
> is released & his account is ready to log-in again.
> Is my logic right?
>
> Kesavan.M
> m.kesavan@hotmail.com
>

Sorry, HTTP is a stateless protocol. You can tell when a user accesses
your site, but not when he/she leaves.

Best is to use sessions and have a timeout on the session.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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