Set Cookie with Database Insert Identity

I am trying to set a cookie with the value from a Database Insert Identity.

This is what I have

image

I also have Cookie Manager set up

image

I can set a Cookie using 'On Success' using the following, but cannot set a Cookie using Set Cookie in the Server Actions

cookies1.set('visit_id','999',{});

What am I missing or doing wrong?

Community Page
Last updated: