# Can I write/read a cookie from swf

**URL:** <https://forum.kirupa.com/t/can-i-write-read-a-cookie-from-swf/8315>\
**Category:** Uncategorized\
**Created:** [November 18, 2002, 4:05pm UTC](https://forum.kirupa.com/t/can-i-write-read-a-cookie-from-swf/8315 "2002-11-18T16:05:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![highwire](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/highwire/32/107_2.png) [@highwire](https://forum.kirupa.com/u/highwire)\
**Post date:** [November 18, 2002, 4:05pm UTC](https://forum.kirupa.com/t/can-i-write-read-a-cookie-from-swf/8315/1 "2002-11-18T16:05:20Z")

</div>

I need to track, record, and report a user’s progress as they use a Flash-based course so I want to write a cookie (or just a text file) and then load it (loadvars?) the next time they run the course so they can see where they left off, which sections they have completed, etc.

Background:

Potential complication - this course will run from CD ROM - (maybe without having done an install).

This might be running as an .exe, not a .swf in a browser, so if I rely on a ‘cookie’ tactic, I wonder if it needs to run within a browser to know where the user’s cookies are stored. The ideal would be to just write a data file to specified folder ‘progress.txt’ that I can reload with loadvars.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 18, 2002, 4:18pm UTC](https://forum.kirupa.com/t/can-i-write-read-a-cookie-from-swf/8315/2 "2002-11-18T16:18:46Z")

</div>

Did you look at the shared objects tute? It might help you. I don’t know if they will work with an exe though. There are a few links at the end of the tutorial.

pom :cowboy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 18, 2002, 8:52pm UTC](https://forum.kirupa.com/t/can-i-write-read-a-cookie-from-swf/8315/3 "2002-11-18T20:52:04Z")

</div>

Perfect. I have looked over the tutorial and I think I’m on my way. Looks like exactly what I need.

Thank You.
