Forum Moderators: coopster

Message Too Old, No Replies

Need a couple of pointers.

         

MajdAA

4:47 pm on Mar 29, 2005 (gmt 0)

10+ Year Member



Hi, Here's what i want to do:

I want to make a script that would display a list of the pages on my site and display how many people are viewing them.

I thought this would be done with sessions. I mean, incrementing a counter on each page's row is easy. But when the session expires, how would php know that? once i figure that out, erasing the row is easy.

ironik

10:04 pm on Mar 29, 2005 (gmt 0)

10+ Year Member



I use the class library 'adodb'. It includes some nice session handling functions which you can customise to some degree. For each session that is open you can store the current page name and get a 'live' view of people visiting your site.

ironik

2:23 am on Mar 30, 2005 (gmt 0)

10+ Year Member



I forgot to mention, you can define custom functions for session expiration (say you want to take someone back to the homepage/login page after a session has expired... adodb will let you do it).