[eluser]WanWizard[/eluser]
The session library reads the current session when you load it. The session_destroy() method does remove the session itself, but not the information already loaded.
To fix this, extend the session library, and add this code to your extension:
Code:
/**
* Destroy the current session
*
* Our version also destroys the session data loaded
*
* @access public
* @return void
*/
function sess_destroy()
{
// call the parent function
parent::sess_destroy();
// and reset the loaded userdata
$this->userdata = array();
}