Changed cookie name format to use id instead of hash

Done as hash value can be recreated for a deleted survey and assigned
to a new one