View Full Version : Header Sent Error, Session Start IS at top

10-13-2004, 07:00 PM
This is what i have at the very top of the page.

header("Cache-control: private");

Putting this code at the very very top of the page has fixed my problem of getting the error:
Warning: session_start(): Cannot send session cookie - headers already sent by ~~~~~~

I have checked, and made sure there isn't a second session start or anything of that kind on the page. The only thing that deals with sessions is something like:

$Blah = $_SESSION['BlahBlah'];

What can i do to get rid of this?

10-13-2004, 07:15 PM
Is the 'problem' (whatever is was) fixed, or did you make a typo?

is suppose your problem (if any) would be caused by the third line (header(...))