S
S
Sergey Sokolov2012-07-01 16:55:09
In contact with
Sergey Sokolov, 2012-07-01 16:55:09

How to log out Air application from vk with resetting cookies?

The Air application for working with VKontakte logs in and receives permissions, while cookies are set .vk.com
. To change the user, you need to remove these cookies that Air stores in the system, and some browsers use them, for example. safari. The WebKit security model used by Air does not allow locally slipped JS to execute, which I could take down certain cookies.
There were mentions of a link on the net oauth.vk.com/logout, visiting which resets cookies in the browser. However, with Air HTMLLoader, that address has some inconsistencies: an empty page and no redirects, although they should.
The options I see. All curves:

  1. launch Safari on a Mac, or IE on Windows, and clear cookies through them;
  2. turn off cookie processing through manageCookies and try to catch and process them manually (creepy);

Question : how to “correctly” reset vk.com cookies for Air, despite the fact that they are basically needed?
Upd. stopped at start URLLoader'a, instead HTMLLoaderof 'a on oauth.vk.com/logout- works until VK changed scripts/links. This is a crutch, because. not documented and used only by scripts from VK.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question