Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z sesjami
0g0r
post
Post #1





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 24.10.2009

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


Siemka winksmiley.jpg. Zakupiłem nowy VPS, i przeniosłem wszystkie pliki z poprzedniego serwera. Jednak na podstronie, gdzie wykorzystuje sesje pojawiają mi się błędy...
Kod PHP:
  1. <?php
  2. $czas_start = date("H:i:s");
  3. $_SESSION['pocz'] = $czas_start;
  4. $_SESSION['start'] = strtotime($czas_start);
  5. $_SESSION['sesja'] = '1';
  6. ?>


Błędy:

  1. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ogor/index.php:1) in /home/ogor/index.php on line 2
  2.  
  3. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ogor/index.php:1) in /home/ogor/index.php on line 2
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 16:03