You are here: Re: Forced user logout / Cancel sessions and cleanup « PHP Programming Language « IT news, forums, messages
Re: Forced user logout / Cancel sessions and cleanup

Posted by Jasen Betts on 10/19/49 11:40

On 2006-02-20, Kimmo Laine <spam@outolempi.net> wrote:
> "Dikkie Dik" <nospam@nospam.org> wrote in message
> news:a41c3$43f8c417$57d40752$13847@news.versatel.nl...
>> actually, you can cleanup a session:
>>
>> http://www.php.net/manual/en/function.session-destroy.php
>>
>
>
> that's not the point here. The problem is how to detect when a user leaves
> the website. If I just close the browser, how's the script gonna know when
> to session_destroy()? Between two page requests the server has no idea what
> the user is doing, did he leave to watch p0rn, did he close the browser, did
> he close the entire computer. Not until he again requests a page. The
> fundamental problem is when can the server safely assume that the user is
> not returning to the site again... It's not about HOW TO destroy the
> session, it's WHEN to destroy the session.

you have to tell it how to guess when.
while they are not requesting content from your site all you can know is what
they are not doing.



--

Bye.
Jasen

 

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

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