Ashish Chaturvedi Ashish Chaturvedi - 5 months ago 30x
SQL Question

Session issue with codeigniter (CI)

I am getting php session error on my live developed using codeigniter

A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/userts4m/public_html/development/relatioweb/admin/index.php:1)

Filename: Session/Session.php

Line Number: 140


File: /home/userts4m/public_html/development/relatioweb/application/admin/controllers/User.php
Line: 9
Function: __construct

File: /home/userts4m/public_html/development/relatioweb/admin/index.php
Line: 293
Function: require_once

Working at localhost fine. But when i uploded at server we are facing this issue.

What should i do ...


As per @kunal and @dale suggestion there was a space in /home/userts4m/public_html/development/relatioweb/admin/index.php