title: Cookies working in Flex but not in Air
body: <p>I've got a flex app which I'm porting to air, the two apps are identical except for the root tag being WindowedApplication rather than Application.</p>
  
  <p>The problem is that cookie/session based logins are working for the flex app in the browser but not for the air app. Reading the docs says that cookies are available for air and the URLRequest manageCookies is true by default.</p>
  
  <p>So does anyone have any idea which this is not working in Air?</p>
  
  <p><em><strong></em>**<em>*</em>**<em>*</em>**<em>*</em>**<em>*</em>*</strong><em>UPDATE</em><strong><em>*</em>**<em>*</em>**<em>*</em>**<em>*</em>**<em>*</em>****</strong></p>
  
  <p>I've investigated further and it turns out cookies are working in Air and are used for all subsequent requests after the login, but the cookie does not survive a shutdown of the application and the user is required to login again when they restart.</p>
  
  <p>So Question 2, is this expected behaviour? If so I will look into storing the cookie info in EncrptedLocalStore or something. </p>
  
  <p><em><strong></em>**<em>*</em>**<em>*</em>**<em>*</em>**<em>*</em>*</strong><em>UPDATE</em><strong><em>*</em>**<em>*</em>**<em>*</em>**<em>*</em>**<em>*</em>****</strong></p>
  
  <p>Cheers,</p>
  
  <p>Chris </p>