I get the following error when using a previously working cookie function:
expects parameter 3 to be long

Code is below... I just don't see the difference then the way the doc uses:
time() - 3600

-vs- the way I did it below...

Thanks !

function f_put_cookie($user_name,$user_email,$account_type,$company_name) {

global $HTTP_COOKIE_VARS;
global $s_c_url;

$l_url = ".".$s_c_url;
$l_cookie_expireN = date('r', time() - 4000 );
$l_cookie_expire = date('r', time() + 400 );
$l_cookie_expire2 = date('r', time() + 400*30*12 );

setcookie("c_user_email","",$l_cookie_expireN);
setcookie("c_user_email",$user_email,$l_cookie_expire2,'/',$l_url,0);
setcookie("c_user_name",$user_name,$l_cookie_expire,'/',$l_url,0);
setcookie("c_account_type",$account_type,$l_cookie_expire,'/',$l_url,0);
setcookie("c_company_name",$company_name,$l_cookie_expire,'/',$l_url,0);
setcookie("c_uas_time", "GREEN",$l_cookie_expire,'/',$l_url,0);
}



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to