SELECT * FROM your_table WHERE logged_in=true
Yes, that was the plan. I was just afraid that it might overload the databade since I have to make a script that checks if the user did any action last xxx seconds. Some "forget" to log out ;-)
How are you storing your user and password information now?
I don't use MySQL right now. I'm using a flatfile.
My plans for MySQL tables:
accounts
profiles
sessions
I want to have a "small" session table since this needs to be updated all the time.
Did user do something? update session (time) + check all times in the table and delete if time > xxx seconds.
I'm looking forward to start with this.