title: Sails+Passport: Logging out won't work
body: <p>I'm making an app that authenticates users with Facebook.
  I'm so new to both Sails and Passport so I decided follow this repository: <a href="https://github.com/stefanbuck/sails-social-auth-example" rel="nofollow">https://github.com/stefanbuck/sails-social-auth-example</a></p>
  
  <p>I followed this repository faithfully and was able to make login function with facebook so easily, but logout function won't work.</p>
  
  <p>In routes.js is:</p>
  
  <pre><code>'/logout' : {
    controller : 'auth',
    action     : 'logout'
  }
  </code></pre>
  
  <p>and in AuthController.js is:</p>
  
  <pre><code>logout: function (req, res) {
      req.logout();
      res.redirect('/');
  }
  </code></pre>
  
  <p>When I stopped the server lifting, logout seems to be done, and next time I execute command <code>sails lift</code>, it warn me that:</p>
  
  <pre><code>warn: handshake error No cookie transmitted with socket.io connection.  Are you trying to access your Sails.js server via socket.io on a 3rd party domain?  If you're ok with losing users' session data, you can set `authorization: false` to disable cookie-checking.  Or you can send a JSONP request first from the client to the Sails.js server to get the cookie (be sure it's the same domain!!)
  </code></pre>
  
  <p>which I don't understand how to handle with.</p>
  
  <p>Would you tell me what is wrong and how I can make it work?</p>
  
  <ul>
  <li>Sails v0.0.4</li>
  <li>Passport v0.3.4</li>
  <li>passport-facebook v1.0.0</li>
  </ul>