Autor Zpráva
Strakkkoun
Profil *
Potřebuju na stránce využívat SESSION, ale mám další problém..

vždy mi to hodí varování:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/www/****/subdomains/www/index.php:15) in /home/www/****/subdomains/www/index.php on line 22

pokud tam nedám session_start() hodí mi to


Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at /home/www/****/subdomains/www/index.php:15) in /home/www/****/subdomains/www/index.php on line 23
... co s tím???
Peca
Profil
http://diskuse.jakpsatweb.cz/index.php?action=vthread&forum=9&topic=21 11
bukaj
Profil
Strakkkoun
skusil sis tu chybu přeložit?

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/www/****/subdomains/www/index.php:15) in /home/www/****/subdomains/www/index.php on line 22
- - -
Varování: session_start() [function.session-start]: Nelze vytvorit session - hlavičky dokumentu už byly odeslány (výstup začal na /home/www/****/subdomains/www/index.php:řádka 15), chyba objevena v souboru /home/www/****/subdomains/www/index.php na řádce 22

tzn. nemůžeš odesílat session, pokud jsi odeslal nějaký výstup (např. pomocí echo, print, ale může to být i mezera na začátku souboru nebo BOM signatura).

a propříště to dej do správné sekce ;) (ale vlastně, když to je tady, tak si účtuji 100,- za radu :D)
Toto téma je uzamčeno. Odpověď nelze zaslat.

0