title: Zend Session Best Practice: Use Zend Auth Namespace for other data?
body: <p>I am trying to work out the best configuration for my Zend Session Namespaces.</p>
  
  <p>I have two categories of data that I need to track in a user's session.  The first is confidental data related to the user.  When the user logs out, the information should be removed from the session.</p>
  
  <p>The second category of data contains non-confidential information related to the usage patterns of the particular user agent.  It should persist once the user logs out.</p>
  
  <p>I am using Zend_Auth, and so have an Auth namespace in the session.  I think that I should persist the other user-related data in this session.  (I presume that Zend_Auth::getInstance()->clearIdentity() will destroy the entire namespace).</p>
  
  <p>Furthermore, I think I need a second namespace for storing the UA-related info, one that will not be destroyed on logout.</p>
  
  <p>Does this sound reasonable?  I'd be keen to hear from anyone who has experience using the Auth namespace to store additional info.</p>
  
  <p>Thanks!</p>