bugzid:8349 - fix setHorizonCookie

https://sailthru.fogbugz.com/default.asp?8349