Welcome Guest, Not a member yet? Register   Sign In
session_start(): Cannot send session cookie
#1

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

Attached Files Thumbnail(s)
   
Reply
#2

(This post was last modified: 12-14-2016, 04:37 AM by Avenirer.)

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.
Reply
#3

Maybe you have to delete the BOM.
Reply
#4

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB