title: ZEND plugin running twice. Why or how to simulate it?
body: <p>Im hours and hours finding why one of my ZEND plugin <strong>sometimes</strong> running twice (depends on URL) </p>
  
  <p>Note that my plugin has preDispatch and postDispatch methods and when I debugging the code it works like this:</p>
  
  <pre><code>MY_Plugin:preDispatch (echo $_SESSION['DBG'] has value)
  MY_Plugin:postDispatch (unset($_SESSION['DBG']))
  </code></pre>
  
  <p>and then again</p>
  
  <pre><code>MY_Plugin:preDispatch (echo $_SESSION['DBG'] not exist)
  MY_Plugin:postDispatch
  </code></pre>
  
  <p>This is part of bootstrap code</p>
  
  <pre><code>$_SESSION['DBG'] = 'value';
  $MYrouter = new MY_Router_MyRouter();
  $frontController-&gt;setRouter($MYrouter);
  $frontController-&gt;registerPlugin(new MY_Plugin());
  </code></pre>
  
  <p>Do you have any suggestion how this could occur or how can I simulate this. </p>
  
  <p>Thanks for any suggestion
  Cervenak</p>