middleware cookie with updated wsgi adaptor