Changed cookie middleware, cookie checking, and details in the controllers and views. Added host configuration variable in session service.