Web Hosting Talk







View Full Version : [PHP] Quick question regarding sessions!


jonathanbull
01-27-2005, 07:01 PM
Hi there,

I've been wondering this for a while now, and about half an hour of googlin' has been much help.

Is there any way to echo all the present sessions on my website?

For example, I could echo something like:

2 current sessions: John
Sophie


Many thanks in advance!

unlucky1
01-27-2005, 07:29 PM
no, because you store variables in the session array. Perhaps you could check in the tmp folder to see how many active sessions there are.

fastduke
01-27-2005, 07:35 PM
Originally posted by unlucky1
no, because you store variables in the session array. Perhaps you could check in the tmp folder to see how many active sessions there are.

That's if your on a dedicated server by yourself otherwise there will be a crap load.