Setcookies problem....problem with headers(possibly)

so… setcookie_pers is not a defined PHP function.
I’d need to see what you’re doing inside that function to evaluate why your setcookie is failing.