Hmm...you know, I guess I made a mistake doing my testing. When I log in twice I *do* stay logged in, even if I don't choose "remember me". It's when I log out of one that I get logged out of both. I was pretty sure of what I was seeing yesterday, but now I can't reproduce it so I was either doing something different or imagining things.
In any case, I see now what you're trying to do. I played around a little and came up with this plugin, using hook global_shutdown:
PHP Code:
if ($vbulletin->userinfo['userid'] > 0 AND is_object($vbulletin->session) AND
$vbulletin->session->created AND !empty($vbulletin->session->vars['dbsessionhash']))
{
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "session
WHERE userid = " . $vbulletin->userinfo['userid'] . "
AND sessionhash != '" . $vbulletin->session->vars['dbsessionhash'] . "'"
);
}
However, I've only tried it a couple times on my test system so I'm not sure it works in all situations.