Hello,
I have a small multiplayer Flash game in which you can
display a player profile by clicking at his or her avatar:
const PROFILE_URL:String = 'http://myserver/user.php?id=';
try {
navigateToURL(new URLRequest(PROFILE_URL+id), '_blank');
} catch(e:Error) {
}
This works well, but now I'd
Alexander Farber skriver:
My problem is, that I can't find the way to set HTTP cookies
through the navigateToURL() method. Please advise me
Normally it would be the same as any other http header, it's part of the
URLRequest class.
However, the cookie related headers are on the blacklist.
If you have access to Javascript, you can set the cookies like this.
ExternalInterface.call(function() { document.cookie = 'foo=bar;
expires=Mon, 15 Nov 2010 23:59:59 UTC; path=/'; }());
navigateToURL(new URLRequest(somepage.php));
Then in somepage, your data will be available in $_COOKIE;
3 matches
Mail list logo