Variable misleading name. Session dictionary keys are PID's, not userids.
Variable names more consistent. Comment
Bug-fix: Last-seen time was wrong, because sessions were not stored sequentially (dict). Also, PID-recycling caused multiple sessions to conflate.