Set cookie after redirect