Refactor $cookie to $cookeName