|
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]
|