Number of guests online is always 1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WebStyles
    Senior Member
    • Apr 2000
    • 323

    Number of guests online is always 1

    I think the problem is in index.php, lines 117 & 118:

    [code]$loggedins=$DB_site->query_first("SELECT COUNT(sessionid) AS sessions FROM session WHERE userid=0");
    $numberguest=$loggedins[sessions];[/code]

    I was watching the session table for 0's, and there is always one... What I think is happening is that there can only be one row with the 0 userid, and all the guests browsing the board are getting lumped into that row. Everytime I look at phpMyAdmin, the IP of the 0 userid is different, so I'm thinking it's only counting the last active guest. I have no idea how to fix it though. :)
    We're Here Forums!
    [email protected]
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎