Preventing multiple log-ins

Preventing multiple log-ins

by Paul Chor -
Number of replies: 2
Hi all,

I am trying to find a way to prevent multiple logins of a single account. Which code is being looked at each time to ensure that the current user has been logged in? In what way shall I put in this functionality so that when there's a new verison of upgrade , it will be as seamless as possible?
Average of ratings: -
In reply to Paul Chor

Re: Preventing multiple log-ins

by Jan Dierckx -

The authentication module can be extended with different plugins. Most people however seem to think that absolutely preventing multiple logins is impossible.

There has been a lot of discussion about this, eg

this post

and this one

and here

Unfortunately most of the posts about this have been buried under a lot of copy/pasted code samples, so it's not easy to find them using the forum search option.

In reply to Jan Dierckx

Re: Preventing multiple log-ins

by Paul Chor -
hmm..

I managed did something which kind of worked for a previous project of mine (but of course, it can't deter a determined hacker) but it involves writing something to the user session. Is that a big no-no under Moodle guidelines?