View Single Post
  #2 (permalink)  
Old 07-01-2009, 12:39 AM
mark2331 mark2331 is offline
Member
 
Join Date: Oct 2008
Posts: 65
Default

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]
__________________
Mark Belanger
http://www.shoreboat.com | http://twitter.com/shoreboat
Reply With Quote