Bug fix: cookies not set

PHP will evaluate a 0 in a conditional expression as false; you need to compare identity with FALSE
See also: http://php.net/manual/en/language.types.boolean.php