Fix Cookie path variable name.

I think $path is correct instead of $cookiePath.