Reply to Re: Problem - sessions

Your name:

Reply:


Posted by Pedro Graca on 01/18/06 23:17

Tomasz Nowak wrote:
> I have a problem with sessions - how to resolve this:
>
> "Warning: session_start(): Cannot send session cache limiter - headers
> already sent (output started at c:\usr\krasnal\www\an\edycja.php:8) in
> c:\usr\krasnal\www\an\edycja.php on line 11"

This message means that when php reached line 11 and tried the
session_start() you have there, it was unable to do so because output
had already started (by something you wrote on line 8) and headers
(which are needed for session management) *have*to*be* sent before
anything else.

So, do one of the following:

a) delete line 8;
b) move line 11 to somewhere before line 8;
c) try to code your site without sessions;

--
If you're posting through Google read <http://cfaj.freeshell.org/google>

[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

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