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 get all active sessions ?

Status
Not open for further replies.

popkorn121

Technical User
Nov 17, 2005
1
RO
HI, im just looking for a way that i can retrieve al the active session IDs in PHP. Let's say that i have a page that can be opened from many users that they do not have user login and stuff, i have to be able to find all the current session iDs that are active. thanks
 
The only way I know of would be to open the directory where the session stores are stored on the filesytem and count the number of files there.

How accurate that number will be will vary on how "tight" your garbage-collection settings are.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top