RE: [PHP] Custom Session Handlers and User Tracking
| From: | John W. Holmes | Date: | Thu, 01 May 2003 13:36:34 +0000 |
| Subject: | RE: [PHP] Custom Session Handlers and User Tracking | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145951@lists.php.net to get a copy of this message | ||
> I am trying to develop a way of tracking users on my site. I have read
a
> few
> articles on Custom Session Handlers that suggest this as a way of
> expanding
> the usefulness of sessions. I currently use sessions on every page of
my
> site
> so I can track unique vistors to my site and I want to be able to
display
> how
> many users are browsing the site, how many are logged in and who is
logged
> in.
>
> Can anyone recommend and good tutorials or any further research? Or
has
> anyone
> got a tried and tested method of doing this sort of thing?
You'll be using this function:
http://www.php.net/manual/en/function.session-set-save-handler.php
You should find some examples there. Searching for tutorials on your
subject with Google should yield some more results.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/