Source: in:flex Blog
The Util comes with methods for setting, getting and removing cookies - as mentioned before you do not have to change a single line in your wrapper, just import the class and start setting cookies from flash or flex.
import de.aggro.utils.CookieUtil;
//Set a cookie named mycookie with a value of mycookie value with a time to live of 30 days
CookieUtil.setCookie("mycookie", "mycookie value", 30);
//Get that cookie and trace its value
trace(CookieUtil.getCookie("mycookie"));
//Delete the cookie from the users computer
CookieUtil.deleteCookie("mycookie");
0 comments:
Post a Comment