prevent forever set loop

prevent forever set loop while ever cookie is not setted
Merge pull request #51 from m8rge/patch-1

prevent forever set loop