SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    a fresh, new start... dujmovicv's Avatar
    Join Date
    Aug 2006
    Location
    Earth
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Warning: session_start()

    I'm a bit confused......
    I've had a site up and running properly. Than I had to delete the whole content. I've uploaded the SAME content again and now there's a line at the top :
    Code:
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/include/form.php:160) in /var/www/include/session.php on line 41
    I really haven't changed any content regarding sessions so I'm confused...
    What went wrong? Server side issue?

    Full time ADMIN - art community
    Part time coder - dsign

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Session_Start() needs to be before ANY output - including HTML, text, whitespace, anything.

    If you look in the HTML sourcecode, you'll see where abouts that error is. You'll probably see that it's after something. You need to move that session_start so that it is before any output.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    a fresh, new start... dujmovicv's Avatar
    Join Date
    Aug 2006
    Location
    Earth
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay, that's clear to me. BUT how can happen that everything is working fine and then the SAME content and this Warning?

    Furthermore : I have the EXACTLY SAME site at another server where it works perfectly without any warnings....
    Last edited by dujmovicv; May 14, 2009 at 11:54.

    Full time ADMIN - art community
    Part time coder - dsign


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
  •