Hi, I am writing a chatroom script and I have a systems using sessions. what I want is for a part of the script to be able to check for all sessions that are currently present and then to display the session names. (i have set it up so that when different people log in to the chat room is assigned a specific name to the session. I need to be able to access them all.....
please help....
multi-session access...
Moderator: General Moderators
Well, if you use default PHP sessions, they are stored in text files in a directory that you specify in the php.ini file. If you really want to parse all those, you can do it.
A better solution is to keep all the people who are logged in stored in a database field, or, if that's not available, a text file. This will be *much* faster than parsing the session files.
A better solution is to keep all the people who are logged in stored in a database field, or, if that's not available, a text file. This will be *much* faster than parsing the session files.