#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    7
    Rep Power
    0

    Question Session and header already sent problem


    Please , I was using Wamp server before . I leter uninstall it and install XAMP. I now import my backup project, if I try to Login, it will show : session_start() [function.session-start]:Cannot send session cookie - header already sent by (output started at C:\xamp\... ...
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,997
    Rep Power
    9397
    That error message, which you cleverly truncated, tells you exactly where output started. Since you can't session_start() if output has already been sent then you need to fix the code so that doesn't happen.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Sep 2006
    Posts
    1,932
    Rep Power
    533
    PHP Code:
    echo("");
    session_start(); 
    Bad....

IMN logo majestic logo threadwatch logo seochat tools logo