...

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



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

<?php
session_start();
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?

raf
10-13-2004, 06: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(...))



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum