SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what does that mean ?

    Warning: Cannot send session cache limiter - headers already sent (output started at /home/sites/site1/web/index.php:13) in /home/sites/site1/web/index.php on line 117

    since i have
    PHP Code:
    <?
    session_start
    ();
    ?>
    in my code
    ONLY LaZiO and ArGaNTiNa ...

  2. #2
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please show the whole thing.
    i had this problem with a script i was using.

    index.php that is.
    but my problem was solved by moving the order of the file i included.

    but in a nutshell that error means your sending html or something to the browser before the headers (session_start();)
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    God Damn

    you are right ....

    i moved the session_start over the header ... and then .... ta ta ... everything is COOL
    ONLY LaZiO and ArGaNTiNa ...

  4. #4
    Probably eating pie mitsubishi's Avatar
    Join Date
    Sep 2001
    Location
    England, UK
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What the deal with this, when I first started playing with sessions I tried to put it after the output had started and had no problems, today I was helping someone with a script and this happened. I figured out what it wanted, but on my test set-up it doesn't seem bothered. Something to with not using cookies?
    No wait it is using cookies because it not written in the url. Did I read that on windows it waits until the next page until dealing with cookies? Or was I reading the php manual for too long again and started to halucinate?

  5. #5
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, any and all headers must be sent to the browser before anything else.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*

  6. #6
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use output buffering but it is easier to call session_start() before you send any output

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  7. #7
    Probably eating pie mitsubishi's Avatar
    Join Date
    Sep 2001
    Location
    England, UK
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, ignore me, dont know what the hell I was talking about, I was thinking about registering session variables, not starting the session. Urghh mind you it was quarter to six in morning.


Bookmarks

Posting Permissions

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