disable in cli mode / set $_COOKIE variable when setting the cookie

https://devheld.jira.com/browse/DEVOPS-914