| 
	
 | 
 Posted by Sanders Kaufman on 11/09/07 20:05 
"Ezechiele" <esechiele@wolfland.it> wrote in message  
news:47348e78$0$16032$5fc30a8@news.tiscali.it... 
> Hi, 
> 
> I have problems with this following script that is called from page1.php 
> and then go back to the calling page. But it seems the SESSION values are 
> not saved properly, for in the calling page they are empty. 
> This is the script: 
> 
 
> $IdUser=$HTTP_COOKIE_VARS["TeachingOnLine"]; 
 
I ain't real good with this, but I think your problem has something to do  
with that. 
When using cookies, if I don't specify a domain, I often have migration  
problems as well. 
 
 
> $url='http://'.$SERVER['HTTP_HOST']."/index.php"; 
> header("Location: $url"); 
 
This too could be the problem. 
When you set that location header, you redirected and I don't think the  
session carried forward. 
(Again - I aint' sure.) 
That can be got around by redirecting through javascript, instead of through  
HTTP, as you did. 
 
 
 
 
> 
> The strange thing is that the same script works properly for another 
> domain. 
> 
> 
> Francesco 
> 
> --  
> http://www.itp-news.com
 
  
Navigation:
[Reply to this message] 
 |