Add set_cookie method