title: Authentication between modules in Zend Framework
body: <p>Currently I'm using ZF3 with two modules.</p>
  
  <p>The first module <strong>handles the authentication</strong> of the users.<br>
  The second module <strong>should use informations</strong> about the authentication status of the users.</p>
  
  <p>In Detail: The second module should verify if the user is logged in.<br>
  Depending on that status it should allow routing to certain Controllers.</p>
  
  <p>E.g. in the template of the first module, I can use: <code>$this-&gt;auth()-&gt;isLoggedIn()</code><br>
  But - of course - I'm not able to use auth() in the second modules templates.</p>
  
  <p>I'm still learning ZF, so I don't know how to inform the second module about the status of the authentication. 
  I guess it has something to do with ZFs ServiceManager or PluginManager, but I'm not sure.</p>
  
  <p>Any help would be appreciated...</p>