Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2011
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Problem with logging out

    What does this mean? Thanks.

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Users/Joe/Sites/x2/logout.php:19) in /Users/Joe/Sites/x2/logout.php on line 21

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    It means you have output prior to the session_start call, so session_start isn't capable of sending the necessary cookie headers to the client. Move session_start before any output and that will go away.
    According to this, you have output in logout.php on line 19.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Posting Permissions

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