Pixelbox

Welcome to Pixelbox. Thursday the 20 of November 2008

Skip to content >>

One way cookie jar in Apollo

It appears that Apollo has a strange way of dealing with cookies. It seems to be able to accept them when using URLRequest, which will then allow you to access a soap page for secure web services. However there seems to be no way to distroy them. I have tried using URLRequest to go to a logout page which should distroy the browsers cookie (not sure how apollo deals with this) but it will still seem to have a cookie the next time I go to login. I then tried it on a new machine and it failed to work (cookie did not exist) which makes me wonder if you can use URLRequest for security over soap, or if you have to build your security into the soap its self. Please let me know if you know any more about this.
Meta tags: AIR

3 comments

Why not leave your own!

  1. Vincent from Adobe posted this reply on the forums: ========================================= Hi, HTMLControl uses whatever cookies setting that's available on its hosting OS. You could clear cookies set by URLRequest via one of these means: - On Windows, open Control Panel then "Internet Options -> General -> Delete Cookies". - On Mac, open Safari then "Preferences -> Security -> Show Cookies -> Remove All". hope this helps! /Vincent ========================================= This seems strange that it uses IE settings on a PC and safari(webkit so makes more sense) on a mac...
  2. Comment left by Ted on the forums: ========================================== I believe if your default browser is set to Firefox, Apollo will use Firefox's cookies. ted ==========================================
  3. Vincent seems to have got back to me with a much better solution, or well way to prove it is safari! =========================================== Apollo always uses Safari's cookie setting on the Mac, because Safari out-of-the-box integrates with the System's HTTP stack. If another application does this similar job as Safari, then you could use it as well (instead of Safari) to manage cookies created by Apollo (or by the URLRequest class to be exact). Firefox as you already pointed out, does not appear to be such an application. It simply manages its own set of cookies in its own application space. To show that Apollo is using Safari's cookie setting, try the following: 1. Clear all System's cookies by openning Safari then "Preferences -> Security -> Show Cookies -> Remove All". 2. Now that you know all cookies are gone, try go to "http://www.google.com" with your Apollo application. 3. Open Safari's "Preferences -> Security -> Show Cookies" dialog now, you should see a cookie set by Google in the google.com domain. /Vincent ===========================================

Add your own comment