Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

How to Set cookie in AIR with HTML/Javascript

$
0
0
Can someone explain or post example code as to how I can go about setting a cookie in AIR using HTML and Javascript?

I have an AIR app that requires the user to login on a form that lives in a non-applicationSandbox. I know how to create/modified/delete cookies using JS and a web browser, but the same code returns a cookie with a null value. I'm sure I'm just missing one line/word of code to make this happen.

The stripped down basics of setting and reading a cookie using Javascript:

document.cookie("myCookie = yummy");
var taste = document.cookie;

What am I doing wrong?

Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>