Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> Warning: session_start()...
RaVeN12322
post 19.11.2009, 16:42:39
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 19.11.2009

Ostrzeżenie: (0%)
-----


Mam problem z błedem:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/freehost/r/a/raven-sites/www/login.php:2) in /home/freehost/r/a/raven-sites/www/login.php on line 10

page 2


  1. <?php
  2.  
  3. $usr_login = $_POST['log'];
  4. $usr_haslo = $_POST['pass'];
  5.  
  6. if ($usr_login == Admin && $usr_haslo == Admin1232 || $usr_login == User && $usr_haslo == User2 )
  7. {
  8.  
  9. $_SESSION['login'] = '1';
  10.  
  11.  
  12. print "<html><head><META HTTP-EQUIV='Refresh' CONTENT='2;URL=portal.php'></head>
  13. <body><h1 align='center'>Zalogowano!</h1></body></html>";
  14.  
  15.  
  16. return 0;
  17. }
  18. else
  19. {
  20.  
  21. print "Błąd logowania! Sprawdz login i hasło. <br /> Jeżeli problem dalej występuje skontaktuj się z administracja strony.";
  22.  
  23. return 0;
  24. }
  25.  
  26.  
  27. ?>


Próbowałem już wszystkiego.
Dodam że tworze to w programie Notepad++
Go to the top of the page
+Quote Post
webdice
post 19.11.2009, 16:47:31
Post #2


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Było wiele razy. Szukaj na forum. Temat zamykam.

P.S. Podejrzewam że to BOM.
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 8.07.2025 - 09:50