Destroy session when CLI script ends.
authorJan Schneider <jan@horde.org>
Fri, 14 Aug 2009 21:58:38 +0000 (23:58 +0200)
committerJan Schneider <jan@horde.org>
Fri, 14 Aug 2009 21:58:38 +0000 (23:58 +0200)
framework/Cli/lib/Horde/Cli.php

index b1226d9..bdd8324 100644 (file)
@@ -181,6 +181,8 @@ class Horde_Cli
             $this->_blue_start   = '<span style="color:blue">';
             $this->_red_end = $this->_green_end = $this->_yellow_end = $this->_blue_end = '</span>';
         }
+
+        register_shutdown_function('session_destroy');
     }
 
     /**