Use secure cookies when using https.
Merge pull request #121 from git-harry/master

Merged automatically by jenkins after successful build test