Set cookie options

We managed to solve this by using the HttpContext