I think the problem is caused by my hosting, but I want to know where to search.
cronjob is working. I am using version 2.4.1. But online/offline stats are not working.
Only admin is shown as online while it's not logged in. Clearing cache didn't help. Why does it give a false result?
and replacing AuthComponent::user('id' with $this->Auth->user('id' also not worked please find a solution