html - session_start malfunction php -


ok site working while ago happened when tried debugging.

session_start(): cannot send session cache limiter - headers sent  (output started      @ ----------------:2) in   ---------------------- on line 3 

(the hyphens same site in same page)

and here codes in first 4 lines:

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <?php      session_start();     include("includes/side_reservation.php");  ?> 

and can assure there no session_start() inside side_reservation.php , anywhere else tried searching file itself.

can't figure out anymore.

your doctype declaration being output before session start being called, resulting in "headers sent" message when trying set session header,

start session before output browser.

<?php session_start(); ?> <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <?php include("includes/side_reservation.php"); ?> 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -