aenigma Posted April 19, 2007 Share Posted April 19, 2007 Im trying to call a session via session_start(); in a script, and im getting this error. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/frozen/public_html/fg/index.php: in /home/frozen/public_html/fg/ses.php on line 11 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/frozen/public_html/fg/index.php: in /home/frozen/public_html/fg/ses.php on line 11 PHP version 4.4.6 Link to comment https://forums.phpfreaks.com/topic/47662-session-errors/ Share on other sites More sharing options...
Guest prozente Posted April 19, 2007 Share Posted April 19, 2007 http://www.phpfreaks.com/forums/index.php/topic,37442.0.html Link to comment https://forums.phpfreaks.com/topic/47662-session-errors/#findComment-232745 Share on other sites More sharing options...
Glyde Posted April 19, 2007 Share Posted April 19, 2007 Please read the stickies in this forum before making a new post. session_start() requires the modification of HTML headers. Therefore, the session_start() call MUST be placed BEFORE any output has been sent to the browser. Check your index.php script on line 8, because at this point you began sending output. Just put <?php session_start(); ?> Before ANYTHING (including whitespace and newlines). Link to comment https://forums.phpfreaks.com/topic/47662-session-errors/#findComment-232746 Share on other sites More sharing options...
aenigma Posted April 19, 2007 Author Share Posted April 19, 2007 Okay, i lied. version 4.4.3 is giving me the error, but it works fine in 4.4.4 Link to comment https://forums.phpfreaks.com/topic/47662-session-errors/#findComment-232748 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.