session_start(): Cannot send session cookie |
Hello,
I have created and launched a website developed using ci. Now today i have copy and pasted to another hosting provider. I am now getting error saying, Message: session_start(): Cannot send session cookie - headers already sent by (output started at /home/simulifi/public_html/prepify.in/application/config/config.php:1) Filename: Session/Session.php Line Number: 141 Backtrace: File: /home/simulifi/public_html/prepify.in/index.php Line: 315 Function: require_once Severity: Warning Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/simulifi/public_html/prepify.in/application/config/config.php:1) Filename: Session/Session.php Line Number: 141 Backtrace: File: /home/simulifi/public_html/prepify.in/index.php Line: 315 Function: require_once I have tried all the whitespace things on config.php file, change the encoding to UTF-8, no luck But before that its working fine and now also on old server its working without any warning. Thank you in advance
How about you show us the code? Or better yet, look into your application/config/config.php and find out if you outputted something in there.
Website: http://avenir.ro
Something is wrong inside your config.php. Probably you are using a closing php tag (?>) and the end of the file and have a space or new line after that closing tag (or some new lines before the php opening tag (<?php) ). That will cause output to the browser preventing you from sending headers in a later stage.
|
Welcome Guest, Not a member yet? Register Sign In |