Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Sessions

Status
Not open for further replies.

kizmar2

Programmer
May 25, 2004
164
US
Is there an easy way to count how many PHP sessions are open on a web page?

I have a client that wants to see how many people are logged in to his site at any given point in time and would like to be able to do it without having to hit a database.

KizMar
------------
 
All PHP sessions are stored somewhere. The default is on the web server's filesystem, but session stores can be stored in a database.

The simplest thing is to see how many session stores are active on your system. If your client's users only get a session aftere they log in, and if it's possible to differentiate your client's users' session stores from everything else (such as the session stores of other applications running on the same server), then it should be easy.




Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top