Hi
I am making a chatroom script and I would like to find out a way to detect whether a user is logged in. I'm using PHP and mysql.
I am assuming it would be some sort of CRON? Whereby it could ping all the users with logged in = true in the database and see if they have a cookie or if they load a test page...?
Any ideas?
I am making a chatroom script and I would like to find out a way to detect whether a user is logged in. I'm using PHP and mysql.
I am assuming it would be some sort of CRON? Whereby it could ping all the users with logged in = true in the database and see if they have a cookie or if they load a test page...?
Any ideas?