April 21st, 2000, 06:49 PM
-
Ok, I need a little help.
Or even a point in the right direction.
I need to be able to tell and post it out to a web page when/who is on my website.
There is a login screen, a members mysql database, and the rest of the site is php.
So if you have lead or solution in mind please post, or email.. thanks.
April 24th, 2000, 08:24 AM
-
well, in the database, you could have a field where there is a 1 or a 0 and when they log in, the login page changes it to a 1, then when they log out, it changes it to a 0. Then, just make a PHP page that aut-refreshes and goes through that database looking for all of the "1"s...
then you should get a pretty accurate record of who's logged in...
April 26th, 2000, 11:28 AM
-
Sounds like a good idea, but what if the user doesn't log-out? Most people just close their browser window when they're finished. This is something that I've been wrestling w/ for awhile...and the best solution that I've come up w/ is to add a time-out to the sessions. Does anybody else have a better idea?
April 26th, 2000, 09:15 PM
-
Well.. Have a small (0 height for example) frame and have it refreshed (by javascript or client pull) and use it to update mysql database. Not a perfect solution, but somewhat better though. And this way you can have session timeout and still have sessions kept up more reliably. (You could also experiment with "session" cookies.)
------------------
Dist - dist@clan-station.org - Founding member of Clan Station
April 27th, 2000, 06:46 AM
-
A zero frame with javascript to renew the date/time field is going to have to do.
Though I know little php, and even less javascript. Would anyone have a snipet of of code I could modify or at least structure from?
Many thanks,
Ugalosh