We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to get users offline without a cronjob? | Forum

Topic location: Forum home » Support » General Questions
Jocke
Jocke Dec 27 '11
Hi!
My host doesn´t allow cronjobs and I wonder if there is anyway to get the users offline without this cronjob?

It must work to put a code in for example the index.php so when everytime it loads by a user that visits my site it checks the database for users that have been online to long?
I have tried to fix this, but my skills in PHP isn´t so good.
Anyone here that nows how to write the code?

Excuse my bad English :)

Have a nice day!
/Jocke

Michael I.
Michael I. Jan 4 '12
Choosing a hosting server that provides Cron Jobs is a better idea than modifying the code. I am not even sure if it is possible to make users get offline without using a Cron Job.
Michael Leader
Michael Jan 4 '12
I believe cron doesn't just show people as "offline" but will integrate with instant chat, notifications and probably some db cache maintenance (just guessing).

I agree, you should move hosts to one that will support your needs.
Michael I.
Michael I. Jan 5 '12
Michael is right, Cron has some more functions besides marking members as offline.