Fw: [PHP] Logged in users
| From: | Kevin Stone | Date: | Thu, 24 Oct 2002 19:42:49 +0000 |
| Subject: | Fw: [PHP] Logged in users | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121339@lists.php.net to get a copy of this message | ||
In that case the way I would handle it is by setting a cookie on the user's
computer and giving them a unique id. Store this id in a database or flat
file. Now on every subsiquent page match the id in the cookie with the id
in the database. Also add a timestamp so you can delete any ids that are no
longer registering after a predetermined amount of time. The number of
unique ids remaining in the database is said to be the number of users
currently browsing the website. That's the general idea anyway.
-Kevin
----- Original Message -----
From: "Plasje" <info@duikplas.nl>
To: <php-general@lists.php.net>
Sent: Thursday, October 24, 2002 1:31 PM
Subject: Re: [PHP] Logged in users
> Hi Kevin,
>
> The users are not authenticated and just visiting my website. I use no
> sessions eather. I hope my wish is still possible?
>
> Robert
>
> "Kevin Stone" <kevin@helpelf.com> schreef in bericht
> news:0ab901c27b91$f3938180$6601a8c0@kevin...
> > The solution will depend on how users are logged into your website. In
> > otherwords how do you keep track of their login state?
> > -Kevin
> >
> > ----- Original Message -----
> > From: "Plasje" <info@duikplas.nl>
> > To: <php-general@lists.php.net>
> > Sent: Thursday, October 24, 2002 1:01 PM
> > Subject: [PHP] Logged in users
> >
> >
> > > Hi there,
> > >
> > > After a long search I still have the problem getting the amount of
users
> > > that is logged in on a specific moment.
> > >
> > > Can anybody help me out on which function or variable to use?
> > >
> > > Thanks in advance
> > >
> > > Robert
> > >
> > >
> > >
> > > --
> > > 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
>
>