<?php
session_start();
$condition = 1;
if($condition == 1)
{
// Unset all of the session variables.
session_unset();
// Finally, destroy the session.
session_destroy();
}else{
echo "Session is not destoryed!";
}
?>
Check out the manual : http://us2.php.net/manual/en/function.session-destroy.php
Hope that's what your looking for. If you are going to "timeout" the session just destroy it. Lata,
Chad