|
Posted by Kimmo Laine on 10/23/17 11:40
"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.
--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviφ
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
[Back to original message]
|