title: Magento - Force admin user log out
body: <p>I am writing a module for Magento that only allows users to login from specific IP addresses.</p>
  
  <p>I am hooking into</p>
  
  <pre><code> admin_session_user_login_success
  </code></pre>
  
  <p>and when my function runs, I am attempting to run</p>
  
  <pre><code> Mage::getSingleton('admin/session')-&gt;logout();
  </code></pre>
  
  <p>however that function does not exist</p>
  
  <pre><code> Invalid method Mage_Admin_Model_Session::logout
  </code></pre>
  
  <p>I read on</p>
  
  <pre><code>http://stackoverflow.com/questions/8455022/how-to-force-magento-to-logout
  </code></pre>
  
  <p>that the account controller or the session controller can also be used to log the user out but I am not sure how to logout an admin user.</p>
  
  <p>Any snippets or ideas are greatly appreciated!</p>
  
  <p>Thank you!</p>
  
  <p>Jeff</p>