Re: seeing who is using the site..
- From: The Natural Philosopher <a@xxx>
- Date: Wed, 10 Dec 2008 18:02:48 +0000
rf wrote:
"Erwin Moller" <Since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx> wrote in message news:493facbe$0$183$e4fe514c@xxxxxxxxxxxxxxxxxWell, that why thinking about what I *really* wanted to know - and writing it here was a good idea, because lot of feedback makes for better thinking - was that I didn't care *who* they were except out of idle curiousity..what really counted was how often particular areas were accessed. That's excellent market feedback.rf schreef:"Erwin Moller" <Since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx> wrote in message news:493f9fe0$0$184$e4fe514c@xxxxxxxxxxxxxxxxxTrue.Erwin Moller schreef:But you will never, ever, know when they "leave".The Natural Philosopher schreef:That was poorly and confusing formulated.Interesting problem. Who is 'online' to the site? and what pages are they accessing..Hi Philosopher,
Ok, could just do a nasty bit of regexp on the logs..but what about every page extracting callers IP address, its own identity,(all my pages are php) and possibly what bits of the database are being accessed....
any ideas on a nice way to present this in a 'sysadmin' page?
The 'who-is-online' is a little hard on normal setups.
I approached it in the past like this, but that was on a site that demanded people to log on first:
What I wanted to say: If you demand them to log in, you know WHO they are, as opposed to unknown visitors that happen to start a session with your site.
If they do not authenticate themself with username/password, you can of course happily start a session anyway.
That is why session timeout, eg after half an hour of no activity.
If you store the session in a db, they will get deleted after that timeout has expired.
Hint: I sometimes have several copies of my several browsers open. Sometimes for days. Perhaps weeks. A browser keeps a session cookie untill *all* instances of that browser is closed. I may revisit the subject site next week, with the same session cookie.????
I don't see your the point of your hint, rf.
I use a timeout of half an hour on most of my sites (which is default I think).
After that your browser holding a PHPSESSID (in cookie or url or form) is invalid and the session file on the server will get deleted sooner or later.
SO you can keep your browser open with its PHPSESSID cookie, but the PHPSESSID is invalid when you return to the server.
Look at the subject line, "who is using the site".
You can tell when I start "using" it. You can never tell when I stop using it'.
By your timeout you will determine that I have stopped "using" your site sometime between one half an hour in the future and next week. Perhaps I access one of your pages now, go get some coffee, get distracted and come back tomorrow to actually read the page. When am I "using" your site? Now, or tomorrow?
.
- References:
- seeing who is using the site..
- From: The Natural Philosopher
- Re: seeing who is using the site..
- From: Erwin Moller
- Re: seeing who is using the site..
- From: Erwin Moller
- Re: seeing who is using the site..
- From: rf
- Re: seeing who is using the site..
- From: Erwin Moller
- Re: seeing who is using the site..
- From: rf
- seeing who is using the site..
- Prev by Date: Re: seeing who is using the site..
- Next by Date: Re: Reading parameter without name?
- Previous by thread: Re: seeing who is using the site..
- Next by thread: Re: seeing who is using the site..
- Index(es):
Relevant Pages
|