Fixed cookie vulnerability as reported in CVE-2013-5107
Merge pull request #37 from synthomat/master

Fixed cookie vulnerability as reported in CVE-2013-5107