Re: [PHP] Total Server Sessions

2005-01-03 Thread Greg Donald
On Tue, 4 Jan 2005 10:40:51 +1100, HarryG <[EMAIL PROTECTED]> wrote: > How do I have database driven php sessions. Any examples?? Hmm.. maybe you missed the url the first time, here it is again: http://destiney.com/pub/Destiney_db_sessions_0.1.0.tar.bz2 -- Greg Donald Zend Certified Engineer

Re: [PHP] Total Server Sessions

2005-01-03 Thread HarryG
How do I have database driven php sessions. Any examples?? "Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 3 Jan 2005 23:02:19 +1100, HarryG <[EMAIL PROTECTED]> wrote: > > Is there an easier way to count the total number of sessions running on a > > PHP webserve

Re: [PHP] Total Server Sessions

2005-01-03 Thread Josh Whiting
> $num_sessions = count(glob(session_save_path() . '/sess_*')); > echo "There are about {$num_sessions} active sessions."; > > It will be fairly active so long as your garbage collection is triggered > fairly often. it is worth noting that this doesn't work if you are using the recursive directo

Re: [PHP] Total Server Sessions

2005-01-03 Thread Richard Lynch
Greg Donald wrote: > On Mon, 3 Jan 2005 23:02:19 +1100, HarryG <[EMAIL PROTECTED]> wrote: >> Is there an easier way to count the total number of sessions running on >> a >> PHP webserver? something like session_count(); >> >> I've seen some php site where it tells you how many people are curren

Re: [PHP] Total Server Sessions

2005-01-03 Thread John Holmes
HarryG wrote: Is there an easier way to count the total number of sessions running on a PHP webserver? something like session_count(); I've seen some php site where it tells you how many people are currently online, which I guess is being done by keeping a count of total sessions running on the ser

Re: [PHP] Total Server Sessions

2005-01-03 Thread Greg Donald
On Mon, 3 Jan 2005 23:02:19 +1100, HarryG <[EMAIL PROTECTED]> wrote: > Is there an easier way to count the total number of sessions running on a > PHP webserver? something like session_count(); > > I've seen some php site where it tells you how many people are currently > online, which I guess is

[PHP] Total Server Sessions

2005-01-03 Thread HarryG
Is there an easier way to count the total number of sessions running on a PHP webserver? something like session_count(); I've seen some php site where it tells you how many people are currently online, which I guess is being done by keeping a count of total sessions running on the server Thanks H