Results 1 to 2 of 2

Thread: PHP Sessions

  1. #1
    Join Date
    Aug 2002
    Location
    Long Island
    Posts
    427

    PHP Sessions

    I am using sessions to keep track of what the users are doing and what they have acess to.

    I can't figure out how to find how many users are on at once and who is on.

    I hope this is enough info

    thanks

    John

  2. #2
    Join Date
    Sep 2002
    Location
    Dallas, TX
    Posts
    205
    Hrm. Well, I guess this might be possible but technically speaking each visitor has his/her own session object and should not be able to access any others.

    Typically though, you can get around this by looking at how the sessions are being serialized and stored. If the sessions are file-based, then maybe you count the number of session files you have. If they are db-based, then query the number of session records...

    However, I have no idea how accurate these methods really are. If you need that type of granular control over each session, then you might consider creating your own session support. It is very easy, and you will have a lot more control over how sessions are created and what data you have access to.
    justin 'at' abrogo.com
    http://www.abrogo.com
    Shared Unix Hosting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •