• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Desktop Air 3.2 AS3 Clear Cookies HTMLLoader

New Here ,
Mar 10, 2015 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

319

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
community guidelines