Deprecated since 3.15, removed in 3.19. This method generates a JavaScript snippet to set cookies in the browser, which is no longer considered a standard or recommended approach. Use output() instead to generate HTTP headers.
Return an embeddable JavaScript snippet, which, if run on a browser which supports JavaScript, will act the same as if the HTTP header was sent.