Results 1 to 4 of 4
  1. #1

    PHP session problem

    Hi All,

    I am still new to PHP, I have a strange problem and cannot find a solution to it.
    I have been trying to change my mysql user name and password in the config.php file, everything has been changed ok, the PHP connects to the database but I have this error message on the top of my website page, any idea why?



    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/commerce/config.php:33) in /home/mysite/public_html/oneadmin411/common/session.php on line 0

    Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/commerce/config.php:33) in /home/mysite/public_html/commerce/common/session.php on line 0

    and here is the config.php file:


    //Website Path
    //$path["webroot"] = "";
    $path["webroot"] = "";

    //Document Path
    $path["docroot"] = "/home/mysite/public_html/commerce/";

    $path["parentroot"] = "/home/mysite/";

    $path["image_path"]= "";

    //MySQL Settings

    //Include all the necessary classes and files. Don't modify.
    ini_set("magic_quotes_runtime", "0");
    error_reporting(E_ALL ^ E_NOTICE);


  2. #2
    got it guys it was just a space at the bottom of my script

  3. #3
    Join Date
    May 2009
    If this is a production site, you may want to consider turning off display_errors:

  4. #4
    session_start has to come BEFORE any headers, thats the problem....

Similar Threads

  1. Php session problem?
    By _eft in forum Programming Discussion
    Replies: 4
    Last Post: 02-25-2008, 03:11 PM
  2. PHP Session problem
    By rajuchandran in forum Programming Discussion
    Replies: 3
    Last Post: 10-24-2007, 03:13 PM
  3. IE Session Problem
    By KI-ChrisE in forum Web Hosting Lounge
    Replies: 0
    Last Post: 06-07-2006, 05:45 AM
  4. PHP Session Problem
    By ThomasC in forum Programming Discussion
    Replies: 13
    Last Post: 11-05-2003, 06:03 AM
  5. PHP Session problem
    By Rich2k in forum Programming Discussion
    Replies: 5
    Last Post: 03-27-2003, 01:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts