Right!
Thanks - at least now I'm not chasing some impossible script!
Now for my next question:
Using your model, I would create a record in a table with username, time, maybe IP address or something, and if this exists and someone else tries to log in, the record will be found and they will be denied access.
The thing is, how do i delete this record once they have finished their session?
Is it simply a case of cleaning this table manually? It could get pretty big with every visitor being registered.