Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-15 Thread Gustav Wiberg
- Original Message - From: "Ben" <[EMAIL PROTECTED]> Newsgroups: php.general To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, September 14, 2005 7:35 PM Subject: Re: [PHP] trying to figure out the best/efficient way to tell who is logged into

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-14 Thread Ben
Gustav Wiberg wrote: All you guys, please comment if the code is well or bad written and why... :-) Since you asked, a few things popped out from a security perspective, though I didn't read through your code very thoroughly Why limit your usernames/passwords to lower case? You've

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Ben
bruce wrote: as an exercise, i took a look at mambo (the cms) and realized that it doesn't handle users who simply shut down their browser while on the system... thoughts/comments... The only way to deal with such situations is through a garbage collection routine that periodically deletes o

RE: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread bruce
tion. > > > -Original Message- > From: Jason Barnett [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 13, 2005 2:25 PM > Cc: php-general@lists.php.net > Subject: Re: [PHP] trying to figure out the best/efficient way to tell > who is logged into a site.. > &g

RE: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Philip Hallstrom
bject: Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site.. Close: You mix both of these ideas. Create a custom session handler. This handler creates user entries in a database. Then when you want to know how many are online you do a count on the number of

RE: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread bruce
-thanks bruce -Original Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 2:25 PM Cc: php-general@lists.php.net Subject: Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site.. Close: You mix both of these i

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Gustav Wiberg
- Original Message - From: "Jason Barnett" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, September 13, 2005 11:25 PM Subject: Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site.. Close: You mix both of these ideas. Create a custom sessi

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread Jason Barnett
Close: You mix both of these ideas. Create a custom session handler. This handler creates user entries in a database. Then when you want to know how many are online you do a count on the number of user entries in the table. Play around with different gc_probability values to tune the efficiency

[PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-13 Thread bruce
hi... anybody have pointers to trying to tell who/how long someone is logged into a system/site. i've thought about setting a session var, but i'm not sure how to read/tabulate this var across the entire group of people who'd be logged in. i've also thought about keeping track in a db tbl.. howeve