thanks...  I'm almost done with this project, and I think I will implement
this in the next phase.  doesn't sound terribly difficult, but I think I
will hold off.  definitely something I will be doing in the future, and
probably not too distance future.


"Timothy Hitchens )" <[EMAIL PROTECTED]> wrote in message
007301c2b6aa$2fbaebf0$0500a8c0@bambino">news:007301c2b6aa$2fbaebf0$0500a8c0@bambino...
> Hmm... yes you could create an array of the files then check the last
> mod stamp using stat (remember to reset stat).
>
> Sessions are also cleaned up via the garbage collection system
> controlled via php.ini
>
>
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> [EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: Jeff Bluemel [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 8 January 2003 10:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] anyway to do a 'whos online' from session variable?
> >
> >
> > yea, that will work.  however, I was thinking of something a
> > little more dramatic like parsing the /tmp directly,
> > associating ID's, and killing dead sessions etc.
> >
> > "Timothy Hitchens )" <[EMAIL PROTECTED]> wrote in
> > message 004701c2b6a2$2dfeb6a0$0500a8c0@bambino">news:004701c2b6a2$2dfeb6a0$0500a8c0@bambino...
> > > Simple create a database table for logins and have a status
> > that you
> > > set to online / offline and last seen could also be added.
> > >
> > > Then it is just a simple SELECT statement.
> > >
> > > If you don't want to use a database you could flock (not perfect) a
> > > file then read in a serialised array and update then write out and
> > > unlock.
> > >
> > >
> > >
> > > HiTCHO has Spoken!
> > > Timothy Hitchens (HiTCHO)
> > > [EMAIL PROTECTED]
> > >
> > > > -----Original Message-----
> > > > From: Jeff Bluemel [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, 8 January 2003 9:08 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] anyway to do a 'whos online' from session variable?
> > > >
> > > >
> > > > when a user logs into my system I set a variable
> > > > $_SESSION['username']. now, every page somebody pulls up it
> > > > revalidates their login so somebody cannot get into the
> > backend of
> > > > the system.
> > > >
> > > > now - is there a way I can make a utility that will show me the
> > > > session username's that are in use?  it would be useful
> > to be able
> > > > to know who's currently online.  this is a website that
> > will not be
> > > > published, and is used for a VERY limited number of people.
> > > >
> > > > Jeff
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to