Birdman203 Posted August 11, 2006 Share Posted August 11, 2006 How can I know when the user leaves the website or closes the browser? Quote Link to comment https://forums.phpfreaks.com/topic/17267-question/ Share on other sites More sharing options...
corbin Posted August 11, 2006 Share Posted August 11, 2006 I was wondering that myself the other day... You could track them using a database and every time they reload a page update the time stamp in there... Then if its less then 5 minutes in the past consider them inactive.... Not sure though... You might be better off doing the same thing cept with session_id Quote Link to comment https://forums.phpfreaks.com/topic/17267-question/#findComment-73245 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.