I am using PassportJS to authenticate my node.js application. I'm using the WSFED/ADFS strategy. However, my `passport.serializeUser()` and `passport.deserializeUser()` functions are not working. They are not even called. The typical solution I have found is to add `app.use(passport.initialize())` and `app.use(passport.session())` AFTER `app.use(session())`, which I did so I'm not sure why `serializeUser()` and `deserializeUser()` are not being called. Here's my code:

```
    var express = require('express'),
        app = express(),
        bodyParser = require('body-parser'),
        cookieParser = require('cookie-parser'),
        session = require('express-session'),
        passport = require('passport'),
        wsfedsaml2 = require('passport-wsfed-saml2').Strategy;

    //Middlewares
    passport.use('wsfed-saml2', new wsfedsaml2({
        realm: 'https://localhost:3001',
        identityProviderUrl: 'https://some_company.org/adfs/ls/',
        thumbprint: '9.....4'
    },
    function(profile, done) {
        console.log(profile);
        return done(null, new User(profile));
    }));

    app.use(cookieParser());

    app.use(bodyParser.urlencoded({
        extended: true
    }));

    app.use(session({
      secret: 'keyboard cat',
      resave: false,
      saveUninitialized: true,
      cookie: { secure: true }
    }));

    app.use(passport.initialize());
    app.use(passport.session());

    passport.serializeUser(function(user, done) {
        console.log('In Serializer'); //does not print
        done(null, user);
    });

    passport.deserializeUser(function(user, done) {
        console.log('In DeSerializer'); //does not print
        done(null, user);
    });

```

Can someone help?

Thanks in advance!