You are here: Re: weird session problem « PHP Programming Language « IT news, forums, messages
Re: weird session problem

Posted by Ulf Kadner on 08/16/07 16:02

isynclere@hotmail.com wrote:

> sorry guys, yes every page has session_start() at the top.
> redirect done with meta refresh.

Better to send a location header for redirecting.

header('Location: http://example.com/whatever.php');
exit; // exit is important here!

But remember: header can only be send if nothing is outputet before!
see => http://php.net/header

Also important:
Check if useragent has cokkies enabled. If not, prepend the session id
to your redirection URL. (Hint: You can use the constant SID)

Ulf

--
_,
_(_p> Ulf [Kado] Kadner
\<_) Mitglied der Freizeitvögel? ;-)
^^

 

Navigation:

[Reply to this 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

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