Here's a short code snippet :
$cookie_name = "logged_in";
$cookie_value = "ok";
$cookie_expire = "";
$cookie_domain = "";
setcookie($cookie_name, $cookie_value, $cookie_expire, "/", $cookie_domain, 0);
Standard stuff, right? But all of a sudden, when I run this script, I get the following error :
Warning: setcookie() expects parameter 3 to be long, string given in c:\program files\apache group\apache\htdocs\website\index.php on line xx.
Been staring at this for 2 days now. I haven't seen this error show up before. What am I missing here?? I just want the cookie to last per session, that's all.
p.s. I'm running Apache 1.3, with PHP 4.3.6 on a Win XP platform.