I’m trying to use Set-UDCookie and Set-UDCookie functions, but it seams that it doesn’t work or causing errors like “You cannot call a method on a null-valued expression.” I’ve tested it as per examples in GitHub.
Can anybody share a success experience of using this functions?
I got some more time to play with UDDashboard. I’ve updated to latest version of UDD, but issue persist.
With some more troubleshooting, I got to understanding, that Set-UDCookie only works in -Endpoint (as it is, amazingly =) stated in documentation). But what to do, if I need to execute it inside -OnChange?
I’ve spent some time searching on this forum and around it for solutions. The only solution that I’ve found - was to create new-udendpoint and feed it with argument. But this Endpoint inside -OnChange didn’t run at all. So I’m confused. Any advice here?