| 
	
 | 
 Posted by Frits van Leeuwen on 09/26/06 10:00 
> >I call from index.php this file: (Taal_nl) 
> > 
> ><?php 
> >setcookie("LeeuwendeelTaal", "nl", time()+3600*24); // 1 dag 
> >echo  "Cookie  is:  ". $_COOKIE["LeeuwendeelTaal"] . '<br>'; 
> >echo  "Cooke  is:  ". $LeeuwendeelTaal; 
> >header('Location: http://www.Leeuwendeel.info/index.php'); 
> >exit; 
> >?> 
> > 
> >nothing happend. 
> > 
> >when I remake lins. like this: 
> ><?php 
> >setcookie("LeeuwendeelTaal", "nl", time()+3600*24); // 1 dag 
> >echo  "Cookie  is:  ". $_COOKIE["LeeuwendeelTaal"] . '<br>'; 
> >echo  "Cooke  is:  ". $LeeuwendeelTaal; 
> >/* header('Location: http://www.Leeuwendeel.info/index.php'); 
> >exit; */ 
> >?> 
> > 
> >I see this: 
> >Cookie  is: 
> >Cooke  is: 
> > 
> >after refresh I see: 
> >Cookie  is: nl 
> >Cooke  is: nl 
> > 
> >I like to see this, without a refresh. 
> 
>  You can't, that's not how it works. $_COOKIE is only populated when the 
> browser sends the cookie back to the server, which is only on the next 
request. 
> 
Thanks Andy for answare. 
I have found my problem. Thanks
 
  
Navigation:
[Reply to this message] 
 |