Core Modules & Blocks  :: 
session_info explained
 Top

  • After a bunch of searching, I have not been able to clearly define the entries in the session_info table for PostNuke.

    Can anyone explain what each of the columns represent?

    Session id: generated by the browser
    ipaddr: user up address
    firstused: ?
    lastused: ?
    uid: user id
    vars: breakdown of some of the user's view settings for PostNuke

    now, the reason I can't understand the first and last used columns is because there are multiple entries for each uid even though the ipaddr for that uid is the same.

    How can I be logged in multiple times? Do these entries clear themselves after some time? how much time of so?

    I appreciate the help.
  • well.... then maybe someone can enlighten me to why each user has duplicate entries. Will my sessions table just keep filling up until the server is full?
  • this is by no means an authoritative answer, but after thumbing through pnSession.php it looks like you may have multiple session entries associated with the same IP 1) if the user comes back to the site after the last session had expired, but before it was garbage collected; 2) if the user opens multiple sessions from the same IP (e.g. accessing the site from different browsers); 3) if you have multiple users coming from the same IP (common with dynamic proxies like AOL's); 4) if the user agent doesn't support cookies and a new session is issued for every request (e.g. crawlers, bots, etc).

    As far as garbage callection goes, it's managed by PHP and gc frequency can be defined in php.ini with directive session.gc_probability.

    To answer you question, stale session entries should be removed automatically, but I've seen a couple of posts here where something went wrong and people had to empty session_info manually.
This list is based on the users active over the last 60 minutes.