session middleware for ee-webservice