title: What could be causing deserializeUser() to not get called?
body: <p>I'm using passport with nodejs and I'm having a strange problem, 
  the <code>passport.deserializeUser(function..</code> never gets called. </p>
  
  <p>Strange thing is that <code>serializeUser(function..</code> get's called just fine..</p>
  
  <p>And yet stranger thing is that it was working just fine a couple days ago, <a href="http://i.stack.imgur.com/4fcfp.png" rel="noreferrer">but now it isn't.</a> I can't think of anything that I changed in my system that would cause this.</p>
  
  <pre class="lang-js prettyprint-override"><code>var express = require('express');
  var app = express();
  
  var passport = require('passport');
  var LocalStrategy = require('passport-local').Strategy;
  
  app.configure(function(){
      app.use(passport.initialize());
      app.use(passport.session());
      app.use(express.static('public'));
      app.use(express.cookieParser());
      app.use(express.bodyParser());
      app.use(express.session({ secret: 'keyboard cat' }));
      app.use(app.router);
  });
  
  passport.use(new LocalStrategy(function(username, password, done){
      return done(null, 'Always Authenticated User');
  }));
  
  passport.serializeUser(function(user, done) {
      console.log(' serialize OK! ');
      done(null, user);
  });
  passport.deserializeUser(function(id, done) {
      console.log('deserialize Never gets called');
      done(null,id);
  });
  
  app.post('/login'
      ,passport.authenticate('local'
          ,{ successRedirect: '/success'
          ,failureRedirect: '/failure'
          ,failureFlash: false
  }   )   );
  
  app.get('/', function(req, res){
      // very simple form
      res.send("&lt;form id='LoginLocal' action='/login' method='post'&gt;&lt;fieldset&gt;&lt;legend&gt;Login with username/password&lt;/legend&gt;&lt;label for='username'&gt; Username: &lt;input type='text' name='username' placeholder='username'&gt;&lt;label for='password'&gt; Password: &lt;input type='password' name='password' placeholder='password'&gt;&lt;input type='submit' value='Login'&gt;&lt;/fieldset&gt;&lt;/form&gt;");
  });
  
  app.listen(80);
  </code></pre>