![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 6 Pomógł: 0 Dołączył: 24.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
witam, mam problem z sesja logowania na mojej stronie. www.kosiaczki.com
zainstalowalem Apache na swym kompie i tu wszystko gra, natomiast po wgraniu plikow na servo, przy poprawnym lub blednym zalogowaniu wystepuje blad: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/kosiaczk/public_html/home.php:1) in /home/kosiaczk/public_html/home.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/kosiaczk/public_html/home.php:1) in /home/kosiaczk/public_html/home.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at /home/kosiaczk/public_html/home.php:1) in /home/kosiaczk/public_html/home.php on line 10 Wie ktos moze dlaczego?? Dzieki z gory za pomoc |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 6 Pomógł: 0 Dołączył: 24.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
w pliku index.php mam na poczatku: <?php session_unset(); ?>
natomiast w error_log.php(czyli tym otwieranym po blednym zalogowaniu wpisalem: <?php session_start(); $_SESSION['username'] = $_POST['user']; $_SESSION['userpass'] = $_POST['pass']; $_SESSION['authuser'] = 0; if (($_SESSION['username'] == 'tutaj login') and ($_SESSION['userpass'] == 'tutaj haslo')) { $_SESSION['authuser'] = 1; } else { header("Location: error_log.php"); exit(); } musze to zmieniac? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 4.10.2025 - 18:41 |