I copied your code exactly into 2 scripts and ran them.
The first script works fine.. but the second scripts prints nothing on the screen. As i stated before, if i put both the output and input cookie lines on the same script, hitting reload does print the the value of cookie_in when i hit reload. It's when i split it into 2 scripts that the second script does nothing. Bummer. -Lisa