1

Topic: Working around AOL proxying caches

Apologies if this ought to be posted in the actual mod specific thread.

Trying to figure a way to counter the effect that the AOL proxying has on the online.php script. The relevant part of the script:

// Grab the users
$result = $db->query('SELECT * FROM '.$db->prefix.'online WHERE user_id > 0 AND idle=0 ORDER BY ident') or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

        $num_users_page = $db->num_rows($result);

if ($num_users_page) {
        while ($num_users_page--) {
                $user_data = $db->fetch_assoc($result);
                if ($user_data['current_page']) {
                        echo"\t\t\t\t".'<tr>'."\n";

                        if ($user_data['user_id'] > 1) {
                                echo "\t\t\t\t\t".'<td><a href="'.PUN_ROOT.'profile.php?id='.$user_data['user_id'].'">'.$user_data['ident'].'</a></td>'."\n";

does exactly what it's supposed to, but the side effect is that when an AOL user is logged in, their IP is constantly appearing to change, so there are a lot of supposed guest connections, which don't theoretically exist. So, the question being, could the DB lookup or while loop above be adapted to drop the ghost connections from it's listing?

Again, my apologies if this is in the wrong forum, but I thought with this one not actually being a mod fault, but an unusual(ish) ISP setup that could affect any such adaptations, this might be the better place to post. big_smile

2 (edited by MattF 2007-06-01 18:46)

Re: Working around AOL proxying caches

Quick question on this one. Been thinking about it, and is this, (the fact that supposed guests can theoretically be seen as viewing areas which are restricted to logged in users), due to the IP of the logged in user only been checked and updated after the timeout period, or upon logout? If so, in which script is the IP/username pair updated?


Thanks again,

Matt