Reply to Re: Strange things with sessions

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация