russia5 Posted April 6, 2006 Share Posted April 6, 2006 Hello, I have a Link exchange script that I am uploading (cpdynalinks) It is not difficult, only one CHMD When I log into the admin, I get this error.[code][b]Warning:[/b]session_start(): Cannot send session cookie - headners already sent by (output started at /home/xxxx/public_html/mylinks/config.php:39) in [b]/home/xxxx/public_html/mylinks/admin/index.php [/b]on line [b]69[/b]Link 39 is the end of the config.php script Link to comment https://forums.phpfreaks.com/topic/6767-php-session-error/ Share on other sites More sharing options...
wildteen88 Posted April 7, 2006 Share Posted April 7, 2006 You are outputing something on line 39 in config.php and the error was triggered in index.php on line 69.When using session_start make sure you dont have anything being outputted to the browser before the use of session_start otherwise you'll get the error message you're getting above. Link to comment https://forums.phpfreaks.com/topic/6767-php-session-error/#findComment-24702 Share on other sites More sharing options...
russia5 Posted April 7, 2006 Author Share Posted April 7, 2006 Thanks for the answer. Line 39 is on the bottom of the script after the closing tag. What could I be outputting at that point? Link to comment https://forums.phpfreaks.com/topic/6767-php-session-error/#findComment-24735 Share on other sites More sharing options...
wildteen88 Posted April 7, 2006 Share Posted April 7, 2006 Does you script go like:[code]37 // rest of code above38 ?>39[/code]if so delete line 39. You are outputting whitespace characters such as newlines, carriage return etc. Link to comment https://forums.phpfreaks.com/topic/6767-php-session-error/#findComment-24748 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.