Highlighted

Desktop Air 3.2 AS3 Clear Cookies HTMLLoader

New Here ,
Mar 10, 2015

Copy link to clipboard

Copied

0 down vote  favorite  

I don´t know how to clear cookies from a HMTLLoader object. My application opens a login third part website and detect if you logged in successfuly. Here is when the third part website creates the cookies, but I have not idea how to clear or delete this cookie when the user log out the tool.

Thanks for your help!

Here is my code:

import flash.html.HTMLLoader; 
import flash.events.Event; 
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequestHeader;
import flash.net.URLRequestMethod;
import flash.net.URLVariables; 

var myHtml:HTMLLoader = new HTMLLoader();
var requests:URLRequest = new URLRequest("login url");
myHtml
.width = stage.stageWidth;
myHtml
.height = stage.stageHeight;
myHtml
.load(new URLRequest("login url"));
myHtml
.addEventListener(Event.LOCATION_CHANGE, read_request); 

function
read_request(evt:Event😞void {
var loader = new URLLoader();
configureListeners
(loader); 
requests
.method = URLRequestMethod.POST;
loader
.load(requests); 
}...
TOPICS
Development

Views

238

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Desktop Air 3.2 AS3 Clear Cookies HTMLLoader

New Here ,
Mar 10, 2015

Copy link to clipboard

Copied

0 down vote  favorite  

I don´t know how to clear cookies from a HMTLLoader object. My application opens a login third part website and detect if you logged in successfuly. Here is when the third part website creates the cookies, but I have not idea how to clear or delete this cookie when the user log out the tool.

Thanks for your help!

Here is my code:

import flash.html.HTMLLoader; 
import flash.events.Event; 
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequestHeader;
import flash.net.URLRequestMethod;
import flash.net.URLVariables; 

var myHtml:HTMLLoader = new HTMLLoader();
var requests:URLRequest = new URLRequest("login url");
myHtml
.width = stage.stageWidth;
myHtml
.height = stage.stageHeight;
myHtml
.load(new URLRequest("login url"));
myHtml
.addEventListener(Event.LOCATION_CHANGE, read_request); 

function
read_request(evt:Event😞void {
var loader = new URLLoader();
configureListeners
(loader); 
requests
.method = URLRequestMethod.POST;
loader
.load(requests); 
}...
TOPICS
Development

Views

239

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 10, 2015 0

Have something to add?

Join the conversation