Well,
Hi to all, at first , and sorry if my english is not accurate, but let's see if I can put it clear to all.
I want a little help from you guys, I'm the programmer hired by my company to work with moodle, my boss wants me to create a report: average time spent on moodle, and I'm having a really bad time to create that.
The problem:
- When we do manual log in or log out, it's fine, the database receive the values "loggedin" and "loggedout". But when the timeout setting is active, the user is redirected to "log in" page but, for some reason I don't know why, the system doesn't input that timeout as "loggedout". So, when I check my database to get the values for report, I see something like that:
id | action | crud | userid |
---|---|---|---|
1 | loggedin | r | 2 |
4 | loggedin | r | 2 |
5 | loggedout | r | 2 |
6 | loggedin | r | 2 |
9 | loggedin | r | 2 |
10 | loggedin | r | 2 |
11 | loggedout | r | 2 |
It looks like that, where the bold ones are the first log in attempt, and the following "loggedin" registers are the log ins did after the timeout.
So, if I didn't click on "log out" button that will repeat until I press that.
I really want to "force" the log out, in any way possible or when the session expires. But I don't have any idea to where change.
Thanks in advance.