Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z session
VirG
post
Post #1





Grupa: Zarejestrowani
Postów: 50
Pomógł: 0
Dołączył: 12.10.2010

Ostrzeżenie: (10%)
X----


Hi.

Mam problem z session, ponieważ na stronie ukazują się błędy:

Kod
Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at /home/str/public_html/admin/index.php:1) in /home/str/public_html/admin/index.php on line 2

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/str/public_html/admin/index.php:1) in /home/str/public_html/admin/index.php on line 2


A to pierwsze 4 linijki strony:
  1. <?php
  2. session_register("zalogowany");
  3. if(empty($_SESSION["zalogowany"]))$_SESSION["zalogowany"]=0;
Go to the top of the page
+Quote Post

Posty w temacie
- VirG   [PHP]Problem z session   7.06.2012, 11:54:06
- - Michael2318   Pierw session_start() wrzuć.   7.06.2012, 12:00:03
- - nospor   Problem omawiany milion razy zarowno na forum jak ...   7.06.2012, 12:00:28


Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 18:22