+ Reply to Thread
Results 1 to 3 of 3

Thread: session_start() problems

  1. #1
    chewett's Avatar
    chewett is offline x10 Sophmore chewett is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    129

    session_start() problems

    does anyone have any knowledge of

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at XXX) in XXX on line X

    i worked out what this is

    i had a line before my <php tag

    all i had to do was remove it
    Last edited by chewett; 11-24-2007 at 07:02 AM.

  2. #2
    jptosso is offline x10 Sophmore jptosso is an unknown quantity at this point
    Join Date
    Nov 2006
    Location
    Santiago Chile
    Posts
    202

    Re: session_start() problems

    try removing Includes and requires, also clean buffers and use a break;
    then apply session_start();
    i also had this problem and that is the way to solve it, try to change the functions order for example:
    include("config.php");
    counter("index.php");
    session_start();

    to

    session_start();
    include("config.php");
    counter("index.php");


    i wish its helpfull

  3. #3
    xbfish's Avatar
    xbfish is offline x10Hosting Member xbfish is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Singapore
    Posts
    8

    Re: session_start() problems

    Just to add, regardless of any case, session_start() must always be at the top of any PHP files/pages.

    This is because every browser will check for session before the header of the web page.

+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. MySQL server address HELP :S
    By rinnerz.com in forum Free Hosting
    Replies: 5
    Last Post: 07-09-2006, 10:25 AM
  3. in here MySQL version????
    By winUSD in forum Free Hosting
    Replies: 4
    Last Post: 05-09-2006, 08:44 AM
  4. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 AM
  5. MySQL problem
    By pensoftware in forum Free Hosting
    Replies: 3
    Last Post: 10-30-2005, 12:34 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
x10hosting free hosting for the masses
dedicated servers