replaced host to hostname
Merge pull request #386 from prasunsultania/master

Use hostname instead of host when setting cookies