Cookies in Concrete5

Permalink
How to set a cookie in Concrete5 8.4.4 version?

I set the cookie in the following standard way:

setcookie("ImLoggedIn");

The cookie however is not created. Why? How to make it?

Janks