fix dangerous caching of cookie values
return value, not key ref
Merge pull request #658 from ikkez/fix-cookie-caching

dangerous caching of cookie values