Update syntax to conform with EE standards

Utilize EE's set_cookie function instead of building our own