Johan Holst Nielsen writes: 

> 
>> my cookie problem is still not solved :(
>> my browser settings are correct, and the script has worked.
>> but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :(
>> does any one have an solution ??
>> thnx in advance,
>  
> 
> Sure about your register_globals = off? 
> 
> please show us the source, or a link to at phps file...
> And a link to a phpinfo() file? 
> 
> I cant help you without further information! 
> 
> Regards,
> Johan 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php 
> 
the setting in php.ini : 

register_globals = on 

i simpley put an cookie with : 

setcookie("gfo_cms" ,$sessid , ''); 


and i read it with : 

<? 

if (isset($HTTP_COOKIE_VARS["gfo_cms"])) {
   $sessid = $HTTP_COOKIE_VARS["gfo_cms"];
   if (!check_valid_sessid($sessid)) {
    login_form();
   }
   if (!check_ip($sessid, $REMOTE_ADDR)) {
    login_form();
   }
   $rights = get_user_rights($sessid);
   $user_id = get_userid_from_sessid($sessid); 

}
if (!isset($HTTP_COOKIE_VARS["gfo_cms"])) {
    login_form();
  } 

?> 

 

the last code looks if the cookie exists ...
but it look likes it won't even create the cookie 

an idea's ?

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

Reply via email to