you have a couple options:
- replace the asp cookie code with your own and use the cookie header directly.
- use a httpmodule that modifies the response stream. it would modify the cookie header before returning to the html.
- use IIS rewrite module to rewrite the cookie header:
https://im5tu.io/article/2017/06/ensuring-samesite-cookies-with-url-rewrite/