Ashish Chaturvedi Ashish Chaturvedi - 2 years ago 126
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 ...

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download