"Cannot send session cookie" error message

markblair

Joined: 2003-05-28
Posts: 2
Posted: Mon, 2004-02-23 06:30

I'm having a problem with my gallery which I just moved from one server to another. What I did was install 1.4.2 on the new server and upload the contents of the album directory to that server. The old server was running 1.3.4 (if I'm not mistaken)...

Everything went smooth for the most part. I had a few errors with permissions but all has been corrected. The last thing I corrected was the config.php had the albums directory pointing to the wrong path. I modified that and once I did, I received the following error message:

Quote:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/mbsites/public_html/gallery/config.php:163) in /home/mbsites/public_html/gallery/session.php on line 60

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mbsites/public_html/gallery/config.php:163) in /home/mbsites/public_html/gallery/session.php on line 60

I checked the config.php file again and it appears to be fine now. When I click on the login link, I get the following message at the top of that screen as well:

Quote:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/mbsites/public_html/gallery/config.php:163) in /home/mbsites/public_html/gallery/session.php on line 60

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mbsites/public_html/gallery/config.php:163) in /home/mbsites/public_html/gallery/session.php on line 60

I can't login as it won't let me but below the first message above, I can see my gallery. I've tried to see if this was a file or folder permissions issue but I'm at a loss. Anyone know how to resolve this?

Thanks...

----
Gallery version: 1.4.2
Apache version: 1.3.29
PHP version: 4.3.3
Graphics Toolkit: ImageMagik
Operating system: Win XP Pro
Web browser/version: IE6

----

Mark Blair
userintervention | free computer support resource!
http://www.userintervention.com

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2004-02-23 12:36

Somehow some newlines got into the end of your config.php. Either remove the newlines from the end, or just remove the last ?> from config.php -- your choice.

 
markblair

Joined: 2003-05-28
Posts: 2
Posted: Mon, 2004-02-23 14:29

That did the trick. Thanks for the assistance. :)

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2004-02-23 15:04

No problema :)