Is the "onLogout" event getting called when you log out? I am helping martijn with the phpbb plugin and it does not seem to be ending the session upon logout...
function endphpbbsession (&$row) {
global $database;
//search for all $session_id in phpbb_sessions where $session_user_id = $user_id
$database->setQuery( "SELECT session_id FROM phpbb_sessions WHERE session_user_id='".$row->id."'" );
$items = $database->loadObjectList();
if(!count($items)>0) {
$return = "No Sessions in Progress";
return $return;
}
foreach($items AS $item) {
// end each session
$phppBBsessionID = session_end($item->session_id, $row->id);
}
}