Simplified getCookie method (closes #1372)
Merge pull request #1373 from enumag/patch-21

Simplified getCookie method (closes #1372)