I currently using this line of code to manually or force the user to log out.
It is working for logout. But this will remove the loginkey. Anyone knows how to do it?
$db->update_query("users", array("loginkey" => ""),"uid = '{$mybb->user['uid']}'");
It is working for logout. But this will remove the loginkey. Anyone knows how to do it?