Variable cookies

I need to create cookies for my flash project so that it will remember where the user was from the last time the swf file was opened. A programmer friend recommended that I use variables instead of shared objects. Are there any good demos or tutorials on this? Much appreciated.

I have something like this on something I am workin on. What mine does is remembers what background the user set last time the .swf was open. I used shared objects and it seems to work a treat.