pass more options to session middleware.