Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

session_start error: Cannot send session cookie - headers already sent


MindVerveMedia

Recommended Posts

I have just started getting the following error when running my admin pages:

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/mindhig1/public_html/admin/includes/filenames.php:94) in /home/mindhig1/public_html/admin/includes/functions/sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mindhig1/public_html/admin/includes/filenames.php:94) in /home/mindhig1/public_html/admin/includes/functions/sessions.php on line 67

 

For the life of me, I don't see anything in my recent changes that would have caused this. On the other hand, I asked my web host to make changes because I was getting register_globals errors. Is there something they might have done in the php.ini or maybe .htaccess files that might have caused this? Fortunately, I'm just seeing it in my admin section, so it's more annoying than anything else.

Link to comment
Share on other sites

This is usualy due to whitespace at start/end of file, created when editing file or by some 'bad' editors. The inbuilt editor in filemanager can cause this, edit your files with a proper text editor, such as html-kit.

 

http://www.oscommerce.info/kb/osCommerce/Common_Problems/15

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

This is usualy due to whitespace at start/end of file, created when editing file or by some 'bad' editors. The inbuilt editor in filemanager can cause this, edit your files with a proper text editor, such as html-kit.

 

http://www.oscommerce.info/kb/osCommerce/Common_Problems/15

 

Yes, that is what it turned out to be. Somehow, some extra whitespace got tacked onto a couple of files after the final ?>. Why this is a problem is beyond me. It shouldn't be. Anyway, it's fixed. Thank you.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...