Moved session middleware to recommended position in middleware stack.