Is it possible to count the number and display the number of people who have a session on your site?
| SitePoint Sponsor |





Is it possible to count the number and display the number of people who have a session on your site?
Have a good day.





are they loggin on through a logon script, if so when they log in you could add 1 to a variable that holds the data for the ammount of ppl on the site or add one to a session value would prob be better
"Am I the only one doing ASP.NET in Delphi(Pascal)?"





I want to count the number of a specific session that are occuring on the server...
Have a good day.





how does the session get started??
"Am I the only one doing ASP.NET in Delphi(Pascal)?"





well geez by setting it..?
Have a good day.


What he means is, are the sessions being started by a user logging on or are they set some other way like bing set when the page loads?
If they are logging on use webnoobs idea, if they are not logging on then it is much more difficult to count as sessions can occasionaly be transfered from site to site if the user has not looged out.
By which I mean if a user has logged into hotmail to read their emails, that session can still be active when the user comes to your site.
Spike
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!





if you are using database then you can put a datetime field. and whenever user goes to a page update it. now, count all the users that have surfed a page within last 30 minutes or somehting like. i hope i am being realistic. never done this though.





jaswinder thats exactly what I want to do, I want to count the active users that are not logged into my site who have been active in the last 15 minutes.
Have a good day.



My friend did something like this, I think i can find his script - It would be old school, but I will see if I can find it. Somebody will obviously correct me when i find it though lmao



Ok nevermind, I just had a bad memory, it just pulled the amount of rows in users =P
Bookmarks