2008-08-28, 02:58 AM
When you log out of the ACP, your session ID cookie is deleted, but the session remains in the database.
$mybb->input should probably be $mybb->cookies
// Delete session from the database
$db->delete_query("adminsessions", "sid='".$db->escape_string($mybb->input['adminsid'])."'");
$mybb->input should probably be $mybb->cookies