![]() |
session_start(): Cannot send session cookie - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: session_start(): Cannot send session cookie (/showthread.php?tid=66848) |
session_start(): Cannot send session cookie - jerry91194 - 12-10-2016 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 RE: session_start(): Cannot send session cookie - Avenirer - 12-14-2016 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. RE: session_start(): Cannot send session cookie - Jurden - 01-04-2017 Maybe you have to delete the BOM. RE: session_start(): Cannot send session cookie - Diederik - 01-04-2017 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. |