[PHP] HELP! Frustrating Cookie Problem....

2001-08-31 Thread Jack Sasportas

OK I have been using the *same* cookie function to place cookies on the
surfers pc and it works for a few hundred people just fine.  Now I have
a few people that it just won't work for.

After extensive testing the only thing I can see is that it is not
writing the cookies, we do see it writing the c_user_email cookie, but
not others, we even added code to erase the cookie first, and still no
luck.

Any ideas would be appreciated...


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;


setcookie(c_user_email,$user_email,(time()+400*30*12),'/',$l_url,0);

setcookie(c_user_name,$user_name,(time()+400),'/',$l_url,0);

setcookie(c_account_type,$account_type,(time()+400),'/',$l_url,0);

setcookie(c_company_name,$company_name,(time()+400),'/',$l_url,0);
setcookie(c_uas_time,
GREEN,(time()+400),'/',$l_url,0);
 }


___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HELP! Frustrating Cookie Problem....

2001-08-31 Thread Richard Baskett

I had the exact same problem, so what I have been doing is using the header
function to set cookies directly as a header.  For example:

header(Set-Cookie: CookieName=$NameVar; path=/; expires=$DateVar);

I have had no problems with this way of setting cookies... So far :)

Rick

 OK I have been using the *same* cookie function to place cookies on the
 surfers pc and it works for a few hundred people just fine.  Now I have
 a few people that it just won't work for.
 
 After extensive testing the only thing I can see is that it is not
 writing the cookies, we do see it writing the c_user_email cookie, but
 not others, we even added code to erase the cookie first, and still no
 luck.
 
 Any ideas would be appreciated...
 
 
 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;
 
 
 setcookie(c_user_email,$user_email,(time()+400*30*12),'/',$l_url,0);
 
 setcookie(c_user_name,$user_name,(time()+400),'/',$l_url,0);
 
 setcookie(c_account_type,$account_type,(time()+400),'/',$l_url,0);
 
 setcookie(c_company_name,$company_name,(time()+400),'/',$l_url,0);
   setcookie(c_uas_time,
 GREEN,(time()+400),'/',$l_url,0);
 }
 
 
 ___
 Jack Sasportas
 Innovative Internet Solutions
 Phone 305.665.2500
 Fax 305.665.2551
 www.innovativeinternet.com
 www.web56.net
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]