Reuse CF middleware to also set the session