Jump to content

Archived

This topic is now archived and is closed to further replies.

russia5

php session error

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Does you script go like:
[code]37 // rest of code above
38 ?>
39
[/code]
if so delete line 39. You are outputting whitespace characters such as newlines, carriage return etc.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.