News, Information and Resources for the World's Leading LMS
Thursday February 9th 2012
Moodle services WIRIS: Maths for Education

Mr. Moodle Answers: Why are inactive students appearing on the online users block?

This question originated from and then was answered by Silvia Ines Borro, a MoodleMonthly reader.  The question was:

I’ve got in my Online Users block , a list of users that are not  really connected.  How can I close their sessions?

Here’s her answer (which she found after troubleshooting):

To remove the users from the user block, open  the mdl_user table you’ll find fields such as lastlogin…fill them with  zero.

To remove the users from the user block that appears when you are in a course open mdl_lastaccess, and locate the user id and the course id and delete that record.

That being said, do be careful when editing any mdl_user table to ensure that you don’t accidentally delete or edit any crucial user data.

Related posts:

  1. Mr. Moodle Answers: Can I assign students to groups and make assignments conditional?
  2. Mr Moodle Answers: can I track mobile access? @moodleman and @aliozgur
  3. Ask Mr. Moodle (submit questions and get some answers)
  4. Mr. Moodle Answers: Why is moodle.org hidden behind login?
  5. Block: #Twitter Search
for fun!

Leave a Reply