Set cookie properties in it's own hook. Fixes #168
Merge remote-tracking branch 'origin/fix-COOKIEHASH-notice' into my-version