Jump to content
php.lv forumi

Problēma ar sesijām


foxsk8

Recommended Posts

Lieta tāda, kad logojos iekšā vai arā visu laiku izmet kļūdu

 

Warning: Cannot modify header information - headers already sent by (output started at forums\raksti.php:7) in includes\sessions.php on line 254

 

Warning: Cannot modify header information - headers already sent by (output started at forums\raksti.php:7) in includes\sessions.php on line 255

 

Kā šo lietu izlabot

 

Vainīgais kods

 

setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);

Link to comment
Share on other sites

×
×
  • Create New...