Set cookie properties in it's own hook. Fixes #168
Merge pull request #172 from markoheijnen/fix-COOKIEHASH-notice

Set cookie properties in it's own hook. Fixes #168