+ Reply to Thread
Results 1 to 6 of 6

Thread: session error

  1. #1
    kundamor is offline x10Hosting Member kundamor is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    36

    Thumbs down session error

    how can i handle following error where on the other page same code works well...

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/kundamor/public_html/---/---/--add.php:3) in /home/kundamor/public_html/folder/adminfold/file_add.php on line 4

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: session error

    Quote Originally Posted by kundamor View Post
    how can i handle following error where on the other page same code works well...

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/kundamor/public_html/---/---/--add.php:3) in /home/kundamor/public_html/folder/adminfold/file_add.php on line 4
    Whats everything in the script up to and including line 4?

    One of them is sending some form of output to the browser, and session_start has to be above whatever that is.


    Edit: Forgot to mention to block out anything that's personal/passwords in those 4 lines, but it seems you already kinda figured that (the path to the add.php file's obscured )
    Last edited by Livewire; 12-11-2008 at 05:08 PM.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    quantum1's Avatar
    quantum1 is offline x10Hosting Member quantum1 is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    near Nashville, TN
    Posts
    68

    Re: session error

    as Livewire said, if you have a space or any other characters before the <?php tag then those characters go out to the browser; if you later have session_start() in your php you will get the error you are seeing
    Two rules of development:
    1) Computers work for people; People do not work for computers
    2) Maintainability is all that matters.

  4. #4
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: session error

    You have to post the code, all we can do is guess ;)

  5. #5
    tttony's Avatar
    tttony is offline x10 Sophmore tttony is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    ~ 10°10'27.10''' N 67°59'59'.59''' O elev. 457m
    Posts
    147

    Re: session error

    try this...


    with this message here show that message because there is output string before session_start()
    <?php
    session_start()
    ?>
    PHP & MySQL Web Developer
    Free Domain co.cc

  6. #6
    mfurqanabid's Avatar
    mfurqanabid is offline x10Hosting Member mfurqanabid is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    37

    Re: session error

    brother remove the white spaces b4 session_start();

+ Reply to Thread

Similar Threads

  1. 500 Internal Server Error on cossacks
    By tletter in forum Free Hosting
    Replies: 1
    Last Post: 12-03-2008, 07:27 PM
  2. Internal Server Error and Errors in cpanel
    By sabinkumar in forum Free Hosting
    Replies: 7
    Last Post: 11-23-2008, 10:57 PM
  3. Drupal Error
    By albussieg in forum Free Hosting
    Replies: 1
    Last Post: 11-23-2008, 09:15 PM
  4. Error en mi host
    By roonline in forum Soporte
    Replies: 17
    Last Post: 11-14-2007, 03:28 PM
  5. 500 Internal Server Error (PHP Error?)
    By aniklaus in forum Free Hosting
    Replies: 3
    Last Post: 11-12-2007, 11:47 AM

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