The code is simple:
setcookie("username",$username,0,$URL);
But it fails to write cookie in Firefox & IE, but works when I'm using Chrome.
I read that cookie is not browser problem since it's sending through header.
But I'm pulling my hair here.
Would someone help me?