[eluser]jedd[/eluser]
Ahh, okay.
How about your user table, where (last login time > last logout time) ?
I believe sessions don't expire (at least not fast (though you can change that setting of course)), but in any case you're always going to have a certain fuzziness with the calculation of 'show me currently logged in users'.