Use secure cookies when using https.

Issue DE268
https://github.com/rcbops/chef-cookbooks/issues/543