You can use JavaScript or ActionScript as well to create cookies, but as Sebastian said: The question is if that's really needed, since you can create the cookie on the server-side when submitting the form. http://www.w3schools.com/js/js_cookies.asp
Doing the processing on the server-side has the advantage that you don't have to deal with runtime specific code on the client for creating cookies (ActionScript and JavaScript). - Raju
