If you only want to unset the $board['id'] value in forum_updates, that should work. If you can't get it to work, try getting rid of the if... statement and the $board variable.
[PHP]
$session = new Zend_Session_Namespace('session');
$session->forum_updates = array();
$session->forum_updates['id'] = 14;
var_dump($session->forum_updates['id']); // outputs int(14)
unset($session->forum_updates['id']);
var_dump($session->forum_updates['id']); // outputs undefined
var_dump($session->forum_updates); // outputs array(0) { }
[/PHP]
If you want to unset all of forum_updates then:
[PHP]
$session->__unset('forum_updates');
[/PHP]
|