A session variable can be destroyed with a call to session_unregister().
Its syntax is: boolean session_unregister (string varname)
<?
session_start();
session_register('username');
// ...use the variable $username as needed, then destroy it.
session_unregister('username');
session_destroy();
?>