Maq Posted December 11, 2008 Share Posted December 11, 2008 Just remember that user's internet connection may just go down, so don't rely only on this script. True, but how often is that...? Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-712776 Share on other sites More sharing options...
premiso Posted December 11, 2008 Share Posted December 11, 2008 Just remember that user's internet connection may just go down, so don't rely only on this script. True, but how often is that...? What is more likely to occur is the user stays on the site, switches to a new tab and continues browsing, or be like me and leave my computer on, and on the same pages for weeks at a time. Then I just refresh the page to look at it. Timeout is definitely the fail-safe way to do it and make sure your results are accurate. Cause if a user does not respond with in 5minutes, they are probably not gonna respond for another 5-10. I just want him to get accurate, fail-safe results on this. Setting the timeout would ensure that. Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-712785 Share on other sites More sharing options...
Mchl Posted December 11, 2008 Share Posted December 11, 2008 Just remember that user's internet connection may just go down, so don't rely only on this script. True, but how often is that...? Too often not to take it into account. Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-712796 Share on other sites More sharing options...
Maq Posted December 11, 2008 Share Posted December 11, 2008 Just remember that user's internet connection may just go down, so don't rely only on this script. True, but how often is that...? Too often not to take it into account. Now that I think about it, you guys are right... The timeout is better because it will produce more accurate results. Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-712802 Share on other sites More sharing options...
thecard Posted December 11, 2008 Author Share Posted December 11, 2008 Wow, thanks for all the input. I think I'll try to use a mixture of the body unload javascript and a cron checker in the img file. Please could someone point me to a good tutorial on cron? I know nothing bout it Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-712807 Share on other sites More sharing options...
Maq Posted December 11, 2008 Share Posted December 11, 2008 Not sure if you mentioned this, but you need a linux server for cron, do you have that? If so it's easy... Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-712810 Share on other sites More sharing options...
thecard Posted December 11, 2008 Author Share Posted December 11, 2008 Yep linux server. Now what? Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-712811 Share on other sites More sharing options...
Mark Baker Posted December 12, 2008 Share Posted December 12, 2008 Not sure if you mentioned this, but you need a linux server for cron, do you have that? If so it's easy...A Windows server has its equivalent in "Scheduled Tasks" Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-713513 Share on other sites More sharing options...
Maq Posted December 12, 2008 Share Posted December 12, 2008 Not sure if you mentioned this, but you need a linux server for cron, do you have that? If so it's easy...A Windows server has its equivalent in "Scheduled Tasks" lol, I didn't mean to sound like you the only thing you can do this with is a Linux server with cron jobs. Thx Mark Baker! Quote Link to comment https://forums.phpfreaks.com/topic/136539-logging-entrance-and-exit-in-database/page/2/#findComment-713672 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.