Reply to Re: Problem with $_SESSION and header("Location:...

Your name:

Reply:


Posted by hemingvej45 on 09/14/06 16:37

hemingvej45@gmail.com wrote:
> Session variables set before a header("Location: whatever") are not
> being written.
>
> And yes, before the header() call, I have session_write_close() but the
> result is the same. This problem is with PHP 4.3.10 on my hosting
> providers' server (and obviously I wouldn't like the hassle of changing
> hosting providers), but it works OK on some other PHP 4 and PHP 5
> servers.
>
> Is there any workaround?

Disregard. I'm really stupid. It seems that register globals was left
enabled on this server and the variables in the session were
overwritten by the variables in the script. Why would anyone be so lazy
to use register globals is beyond me....

[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

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