set-cookie ( <cookie name>=<cookie value> \ [ expires <expiration> ] \ [ path <path> ] \ [ same-site "Lax"|"Strict"|"None" ] \ [ no-http-only [ <no-http-only> ] ] \ [ secure [ <secure> ] ] ) ,...Copied!
get-time to tm year 1 set-cookie "mycookie1"="4900" expires tm path "/", "mycookie2"="900" expires tm path "/my-app" same-site "Strict"Copied!
get-time to mytime year 1 month 2 set-string my_cookie_value="XYZ" set-cookie "my_cookie_name"=my_cookie_value expires mytime path "/" same-site "Lax"Copied!
set-cookie "my_cookie_name"=my_cookie_value no-http-onlyCopied!