Ok, so far it is working for me so try this out.

You need to edit ... wait for it ... wait for it ... logout.php! <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

Find

$_SESSION['forumvisit'] = array(); // *o_O*

and comment it out

// $_SESSION['forumvisit'] = array(); // *o_O*

That's it!

I have also modified ubbthreads.php but I don't think this one makes any difference at all. Anyway here is the mod:

original code

$laston = $user['U_LastOn'];

// -------------------------------------------------------------------
// If this is their first visit for this browser session, set a cookie
// and grab all entries to the w3t_Last table
if ((empty($user['U_LastOn']))) {
$user['U_LastOn'] = $html->get_date();
}


became


// -------------------------------------------------------------------
// If this is their first visit for this browser session, set a cookie
// and grab all entries to the w3t_Last table
if ((empty($user['U_LastOn']))) {
$user['U_LastOn'] = $html->get_date();
}

$laston = $user['U_LastOn'];

I just think it makes more sense, but as I said probably does nothing.